Microsoft Interview Question: Find if given number matched ... | Glassdoor

Interview Question

Software Development Engineer In Test (SDET) Interview Mountain View, CA

Find if given number matched sum of two elements in sorted


Interview Answer

2 Answers


Don't assume array is sorted when testing. Now how your solution fail !!

Interview Candidate on Mar 7, 2013

two pointers solves sorted array, hashmap can solve unsorted array

What a lucky guy~ on Feb 12, 2017

Add Answers or Comments

To comment on this, Sign In or Sign Up.