Introduction
It is the binary search algorithm with extra constraint, lowest index. The peer wrote the algorithm with a few bugs but she showed me how good she did reasoning using test cases at top of the code, two test cases, and she always used them to test her code. This is the first time I saw some one to do that. Very smart and I like to learn it as well.
Binary search algorithm
Here is the algorithm I helped as a reviewer. I did help to fix the bug, add global variable initialization on line 17.
No comments:
Post a Comment