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

КОМЕНТАРІ • 5

  • @Algorithmist
    @Algorithmist  4 роки тому

    Be sure to check out my contest screencast here - ua-cam.com/video/5mO79nN43U0/v-deo.html

  • @harshrajsinha012
    @harshrajsinha012 2 роки тому

    The things is how I'm goona store the input ????

  • @Seanwong03
    @Seanwong03 4 роки тому

    Hey Larry, in your binary search, why do you use good(mid+1) instead of good(mid) ?

    • @Algorithmist
      @Algorithmist  4 роки тому +2

      For this problem, I wanted to keep the "first true", so for me to keep mid + 1, I would have to check mid + 1.

  • @kadewu7291
    @kadewu7291 4 роки тому

    good explanation