Spotify interview question

Big(O) for retrieving an item from sorted array

Interview Answers

Anonymous

4 Apr 2019

Should be O(1) if using the Collections .get() function. Otherwise, if you had to implement your own, you could do Binary Search, which would be O(log(n)). Out of curiosity, what was the 30 minute Android question and the Android/Computer Science questions during the first screening?

Anonymous

12 Mar 2020

Hi, what was the 30 minute Android question and the Android/Computer Science questions during the first screening?