← First Bad Version
Discussions
Sign in to join the discussion.
T
tkumar
OFFICIAL
1 week, 3 days ago
Clean C++ solution, beats most submissions.
The answer space is monotonic, so binary search on it. Be careful with the loop condition (lo < hi vs lo <= hi) and how you move the bounds.
💬 1 reply
H
harini_13
1 month, 4 weeks ago
Simple approach explained for beginners.
The answer space is monotonic, so binary search on it. Be careful with the loop condition (lo < hi vs lo <= hi) and how you move the bounds.
💬 0 replies