Wednesday, March 25, 2020

Case study: Search in rotated sorted array

March 25, 2020

Introduction


It is important for me to learn from interviewees through mock interview on interviewing.io. I like to work on  a short case study on this interview 10:00 PM.

Case study

Here is the code after I reviewed. The code still failed the last test case, and then I pointed out that the design has flaw, the two edge node of a range cannot determine if the target is the range, only if the range is in ascending order.




Interviewer feedback


Interviewee feedback

No comments:

Post a Comment