LeetCode 658. Find K Closest Elements | JSer - JavaScript & Algorithm

preview_player
Показать описание
Binary Search
Hi I'm a JavaScript engineer who is not good at algorithms,
and currently practicing leetCode online. If you are interested, maybe we can learn together.
Рекомендации по теме
Комментарии
Автор

Came up with a pretty similar solution, infitity to avoid edge cases was clever, gj

kalevaguirre