Collection Types (Array, Dictionary, Set)
Return the array of people that has “E” in their favorite fruits
1 | let appleLeadershipAndTheirFavoriteFruits = [ |
Sort the array odd numbers go to forward and even numbers go to Backward
1 | func oddGoToForwardEvenGoToBackward(numbers: Array<Int>) -> Array<Int> { |
Print how many digit numbers are in array
1 | func howManyNumbers(in numbers: Array<Int>) { |
Reverse a number
1 | func reverseNumber(of number: Int) -> Int { |
Determine the number has unique digits or not
1 | func isUniqueDigit(number: Int) -> Bool { |
Determine the array has unique letters or not
1 | func getUniqueLetters(from letter: Array<String>) -> Array<String> { |
Organize a carnivores phylogeny
1 | let livingThings = [ |