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...
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
nice explanation, thanks!
No problem!
But doesn't the initial sort make the runtime n squared?
Is it not the balls should be placed only in the baskets whose position is given
Good explanation . Thank you