Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dennissterzenbach/4834accf9bfae74ec8b59580063804d8 to your computer and use it in GitHub Desktop.
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 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