#is the answer 4 if so how do you figure it out?
6 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @ancient dock! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
it's binary search, not linear search
13 would be the correct amount of iterations for linear search, but binary search is much more efficient here
Yeah I figured it out and the answer is 3