LeetCode 1552. Magnetic Force Between Two Balls (Python)

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 6

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

    Question on LeetCode: leetcode.com/problems/magnetic-force-between-two-balls/
    My solution code on LeetCode: leetcode.com/problems/magnetic-force-between-two-balls/discuss/795786/Python-Clean-Binary-Search-Solution-with-Video-Explanation

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

    But doesn't the initial sort make the runtime n squared?

  • @saransaran2752
    @saransaran2752 3 роки тому

    Is it not the balls should be placed only in the baskets whose position is given

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

    Good explanation . Thank you

  • @joshuamolinavandenbergh7070
    @joshuamolinavandenbergh7070 3 роки тому +1

    nice explanation, thanks!