Skip to content

Files

Latest commit

 

History

History

binary_search

Problems :

ID Code Problem Name Solution Time Space Note
000 34 Find First and Last Position of Element in Sorted Array C++ O(log(N)) O(1)
001 436 Find Right Interval C++ O(N * log(N)) O(N)
002 611 Valid Triangle Number C++ O(N^2) O(1)
003 441 Arranging Coins C++ O(log(N)) O(1)
004 1283 Find the Smallest Divisor Given a Threshold C++ O(N * log(N)) O(1)
005 1482 Minimum Number of Days to Make m Bouquets C++ O(N * log(N)) O(1)
006 475 Heaters C++ O(N * log(N)) + N * log(M)) O(1)
006 69 Sqrt(x) C++ O(log(N)) O(1)