1552. Magnetic Force Between Two Balls (Leetcode Medium)
Вставка
- Опубліковано 30 вер 2024
- Larry solves and analyzes this Leetcode problem as both an interviewer and an interviewee. This is a live recording of a real engineer solving a problem live - no cuts or edits!
Problem: leetcode.com/p...
Twitch: / larryny
Discord: / discord
Instagram: / larrysomewhere
#leetcode #coding #programming
Be sure to check out my contest screencast here - ua-cam.com/video/5mO79nN43U0/v-deo.html
The things is how I'm goona store the input ????
Hey Larry, in your binary search, why do you use good(mid+1) instead of good(mid) ?
For this problem, I wanted to keep the "first true", so for me to keep mid + 1, I would have to check mid + 1.
good explanation