Tuesday, February 13, 2018

4 sum algorithm

Feb. 13, 2018

Introduction


It is 8:00 PM mock interview. I spent 18 minutes to write 4 sum algorithm based on the advice from the peer, do not use extra space, using two pointer technique,  I wrote the algorithm. The total interview took us 38 minutes.

Code review


Here is C# code.

No comments:

Post a Comment