Commit Graph

10 Commits

Author SHA1 Message Date
Pranav Ghorpade
11eec78770 docs: Add comprehensive documentation to BinarySearch algorithm (#7245)
* docs: Add comprehensive documentation to BinarySearch algorithm

- Added detailed JavaDoc with @param, @return, @throws tags
- Included step-by-step algorithm walkthrough example
- Added inline comments explaining each code section
- Documented time and space complexity analysis
- Provided concrete usage examples with expected outputs
- Explained edge cases and overflow prevention technique

* style: Apply proper Java formatting to BinarySearch

- Fixed line length to meet style guidelines
- Applied proper JavaDoc formatting
- Corrected indentation and spacing
- Ensured compliance with project formatting standards

* fix: correct Javadoc formatting and add missing newline at EOF

- Fix Javadoc structure with proper tag ordering (description before @params)
- Remove incorrect @throws tag (method returns -1, doesn't throw)
- Format algorithm steps as proper HTML ordered list
- Move complexity analysis before @param tags
- Add missing newline at end of file
- Fix example code to use instance method call
2026-01-30 20:01:10 +01:00
SwaatiR
79cdb98193 Add input validation and clarify sorted array requirement in Binary Search (#7216)
Added input validation and clarify sorted array rrequirement in Binary Search
2026-01-18 16:01:01 +00:00
Hardik Pawar
ca5fbbf0a9 Add tests, remove main in BinarySearch (#5663) 2024-10-10 22:22:42 +03:00
acbin
415a04ea7f Add automatic linter (#4214) 2023-06-09 20:05:14 +08:00
acbin
00282efd8b style: format code (#4212)
close #4204
2023-06-09 18:52:05 +08:00
Saurabh Rahate
1dc388653a Refactor Code Style (#4151) 2023-04-15 11:25:54 +03:00
Saurabh Rahate
ad72c28d91 Remove unnecessary code (#4141) 2023-04-03 22:35:59 +08:00
acbin
e96f567bfc Format code with prettier (#3375) 2022-10-03 17:23:00 +08:00
vie02
d22420fea8 Fix off-by-one error (fixes #3248) (#3250) 2022-09-07 09:01:22 +03:00
Aitor Fidalgo Sánchez
9fb3364ccc Change project structure to a Maven Java project + Refactor (#2816) 2021-11-12 08:59:36 +02:00