mvp#463
Conversation
imxande
left a comment
There was a problem hiding this comment.
On Exercise II, the building and egg problem. A better solution will be using Binary Search. This allows us to always divide the search by half. I mean imagine we are the ones who have check every single floor. That would take ages. Check this out:
https://www.geeksforgeeks.org/complexity-analysis-of-binary-search/
|
Sent from my iPhone
On Oct 16, 2020, at 8:53 PM, Alejandro E Rodriguez ***@***.***> wrote:
I see what you mean. I put myself in the situation mentally and asked myself how would I do it that’s how I came up with that answer. I see how binary search is better though. How did I do overall? Did I pass
…
@imxande commented on this pull request.
On Exercise II, the building and egg problem. A better solution will be using Binary Search. This allows us to always divide the search by half. I mean imagine we are the ones who have check every single floor. That would take ages. Check this out:
https://www.geeksforgeeks.org/complexity-analysis-of-binary-search/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Of course you passed, great job Steven keep it up!! |
No description provided.