Help with binary search!!

Правка en1, от adyyy, 2019-10-18 22:30:20

PLease someone help me with the binary search.... as I seen this far there never exists a single binary search technique for all the problems or may exists and I dont know . Anyways please help me if I have a function f(x) and i have to check for a k in [1 to n] such that f(k) is just >=m . example n=9 m=22 ans=7; please tell someone..... P.S sorry for my poor english

Теги #binary search

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский adyyy 2019-10-19 00:05:16 17 Tiny change: 'st >=m .\nexample ' -> 'st >=m .\nf(x)=x*(x+1)/2;\nexample '
en1 Английский adyyy 2019-10-18 22:30:20 403 Initial revision (published)