LeetCode 1200. Minimum Absolute Difference (Algorithm Explained)

preview_player
Показать описание


Preparing For Your Coding Interviews? Use These Resources
————————————————————

Other Social Media
----------------------------------------------

Show Support
------------------------------------------------------------------------------

#coding #programming #softwareengineering
Рекомендации по теме
Комментарии
Автор

Great expiation Nick. I think we an do it in one for loop by initially adding the first pair of sorted array and initial min difference is the difference between them.
On update of min difference, we clear the list and add the new pairs.

nishantsabharwal
Автор

Can you please also start doing videos on system design. Thanks for your hard work.

TuhinSh
Автор

This is not the fastest solution. Hence your soln is only faster than 18% of Java soln.

AkshayKumar-xhob