diff --git a/README.md b/README.md index debb56b..a32ce13 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,17 @@ Create a function that receives an integers array and returns the number that ap | (1,1,2) | 2 | | (2,2,1) | 1 | +answer: + +``` + +func move() -> [Int]{ + let num : Int + if var number == num { + print(num) + } +} +``` ## 2nd Challenge Create a function that receives a string then it converts uppercase letters into lowercase and vice versa. The function then should print the converted value. @@ -21,6 +32,17 @@ Create a function that receives a string then it converts uppercase letters into | My name is Ali | mY NAME IS aLI | | sHroog | ShROOG | +answer: + +``` + +func converse() -> (String) { + let letter : String + if let letter == String.uppercased(<#T##self: String##String#>){ + + } +} +``` ## 3rd Challenge Create a function that receives an array of items & arrays and returns one flattened array with all items exluding null values.