Help with binary search!!

Revision en2, by adyyy, 2019-10-19 00:05:16

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 . f(x)=x*(x+1)/2; example n=9 m=22 ans=7; please tell someone..... P.S sorry for my poor english

Tags #binary search

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English adyyy 2019-10-19 00:05:16 17 Tiny change: 'st >=m .\nexample ' -> 'st >=m .\nf(x)=x*(x+1)/2;\nexample '
en1 English adyyy 2019-10-18 22:30:20 403 Initial revision (published)