LeetCode 1552. Magnetic Force Between Two Balls (Python)

Поділитися
Вставка
  • Опубліковано 30 вер 2024
  • Here's comes the interesting question from the LeetCode weekly contest! Check out my solution in Python with clear visualization and explanation.
    Question on LeetCode: leetcode.com/p...
    My solution code on LeetCode: leetcode.com/p...
    Connect with me 😊
    Instagram: / ahtech611
    My website: ah-tech.mailch...

КОМЕНТАРІ • 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

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

    nice explanation, thanks!

  • @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