Created
February 25, 2021 15:32
-
-
Save danfitch/768ccfceddbe26f29c0a81aee463e033 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given an array of strings [‘one’, ‘two’, ‘three’, ‘three’, ‘four’] write a function that will remove duplicates returning [‘one’, ‘two’, ‘three’, ‘four’] | |
func (arry) { | |
... | |
return arr | |
} | |
Given an array of integers [‘one’, ‘two’, ‘three’, ‘three’, ‘four’] write a function that takes an array and string and returns the number of elements. | |
func (arry, entr) { | |
... | |
return count | |
} | |
func ([‘one’, ‘two’, ‘three’, ‘three’, ‘four’], ‘one’) returns 1 | |
func ([‘one’, ‘two’, ‘three’, ‘three’, ‘four’], ‘three’) returns 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment