13 Commits

Author SHA1 Message Date
d2d5efdd2a BinarySearch: clearer median computation (#2182)
* BinarySearch: clearer median computation

">>> 1" is simply too obscure...

* update binary search

Co-authored-by: Yang Libin <contact@yanglibin.info>

Co-authored-by: Du Yuanchao <shellhub.me@gmail.com>
Co-authored-by: Yang Libin <contact@yanglibin.info>
2021-04-21 09:23:46 +08:00
8cece6c399 Formatted with Google Java Formatter 2021-04-14 03:51:16 +00:00
b8707e61cb Formula to find median in Binary Search changed (#2181)
* Formula to find median in BS changed

* Fixed bugs

* fixed binary search bug

Co-authored-by: Sourav <kalitasourav12@gmail.com.com>
Co-authored-by: Du Yuanchao <shellhub.me@gmail.com>
2021-04-14 11:50:48 +08:00
5d59a2e828 Formatted with Google Java Formatter 2020-10-24 10:23:28 +00:00
a19ece9b0c code readable 2019-09-24 10:45:39 +08:00
29948363da docs: update the whole repository
* fix some bugs
* delete duplicate files
* format code
2019-05-09 19:32:54 +08:00
378f661f70 Update BinarySearch.java
fix
2019-01-11 20:33:50 +08:00
819b7fd3da Restructured the repo 2018-11-13 09:15:47 -08:00
nik
7d178c51b4 Refactored a few searching algorithms
Added documentation to these algorithms
2018-04-12 16:37:47 +03:00
85771ea74f prevent (ub+lb) overflow 2017-10-01 17:26:05 -06:00
22350eaf6b Update BinarySearch.java
Converted integer binary search to generic binary search
2017-08-17 06:57:00 -07:00
60f6dda70a Simplifies the readability of the static method BS 2017-07-16 04:28:01 -04:00
324e48903b Rename BinarySearch.java to Searches/BinarySearch.java 2017-04-27 15:18:36 +01:00