Created
May 16, 2017 17:27
-
-
Save dennissterzenbach/4834accf9bfae74ec8b59580063804d8 to your computer and use it in GitHub Desktop.
Job Interview Question about to find an algorithm and performance for a certain situation
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
/** | |
* This are your TODOs: | |
* | |
* Given is a list of random integers inside of an array. You have to implement | |
* a JavaScript function which finds the first pair of entries which summ up to | |
* the given integer value. | |
* | |
* Example: | |
* - sum should be 8 | |
* - example arrays are: a = [ 1, 2, 3, 9 ] b = [ 1, 2, 4, 4 ] | |
* | |
* Please design your function with efficiency in mind. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment