Commit Graph

7 Commits

Author SHA1 Message Date
5181843c25 Add a gif showing binary search and linear search (#32384) 2019-02-13 15:39:07 -08:00
ee9920fbb8 Avoiding overflow in getting mid index in Java (#25211)
* Avoiding overflow in getting mid index in Java

start + (end - start)/2 is preferable over (start + end)/2 to avoid overflow errors

* Update index.md
2019-02-13 15:37:30 -08:00
17e712324a Added best case time complexity (#25511)
Added best case time complexity along with the best case condition in the time complexity section.
2018-12-05 10:02:01 +05:30
70fc1ac009 Fixed the binary search equation by changing the 2x to 2^x (#21389)
Fixed the binary search equation by changing the 2x to 2^x

If we divide N by 2 x times it is supposed to be N/2^x not N/2x
2018-11-10 14:48:35 +07:00
b6ad5afb70 Correcting a spelling mistake (#19845)
* Correcting a spelling mistake

* Formatting and adding missing code

* Removing extra code

* Update index.md
2018-10-26 03:29:30 -06:00
7e2e5698a7 fix: removed duplicate (#19775) 2018-10-21 14:55:18 -05:00
da0df12ab7 fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30