Acumen interview question

Find how many times a sorted integer array has been shifted.

Interview Answer

Anonymous

24 Aug 2022

An easy way is to just count where the lowest number is from the left side of the array. Before I was able to implement this quick solution, the interviewer interrupted and expected me to do a binary search as if it had millions of elements. I couldn't hear very well because of the interviewers microphone and that he was mumbling.