10000 GitHub - Dwashi2/swift-CalculatetheMedian
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Dwashi2/swift-CalculatetheMedian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

swift-CalculatetheMedian


Swift Study

Project to study Swift

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contact

About The Project

  Create a function that takes an array of numbers and return its median.
  If the input array is even length, take the average of the two medians, else, take the single median.
  
  Examples:
  median([2, 5, 6, 2, 6, 3, 4]) ➞ 4
  median([21.4323, 432.54, 432.3, 542.4567]) ➞ 432.4
  median([-23, -43, -29, -53, -67]) ➞ -43
  
  Notes:
  Input can be any negative or positive number.
  Input array will contain at least four numbers.
  See Resources tab for info on calculating the median.

  Excercise from: https://edabit.com/challenges/swift

Getting Started

Open the file CalculatetheMedian.xcodeproj

Prerequisites

  • Xcode 12.4
  • Use iPhone 12 mini as simulator

Contact

Daniel Washington Ignacio - danielvertigo@hotmail.com

Click to access my LinkedIn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0