Ice Cream Parlor

  • + 6 comments

    Wont this be n2logn? Binary search itself is nlogn and we are running a loop for o(n). so it will be n*nlogn right? Or am I misunderstanding something?