Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

docs: improve LinearSearch documentation with examples and step-by-step explanation#7435

Merged
DenizAltunkapan merged 1 commit into
TheAlgorithms:masterTheAlgorithms/Java:masterfrom
07Vineet07:improve/linear-search-docs07Vineet07/Java:improve/linear-search-docsCopy head branch name to clipboard
May 26, 2026
Merged

docs: improve LinearSearch documentation with examples and step-by-step explanation#7435
DenizAltunkapan merged 1 commit into
TheAlgorithms:masterTheAlgorithms/Java:masterfrom
07Vineet07:improve/linear-search-docs07Vineet07/Java:improve/linear-search-docsCopy head branch name to clipboard

Conversation

@07Vineet07

Copy link
Copy Markdown
Contributor

Improved documentation for LinearSearch implementation as suggested in issue #7334.

Changes made:

  • Added step-by-step explanation of how the algorithm works
  • Added a concrete example with input/output
  • Improved time complexity descriptions (best/average/worst case)
  • Improved method-level Javadoc

Closes #7334

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.69%. Comparing base (e49cd55) to head (72cf3d3).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #7435      +/-   ##
============================================
- Coverage     79.70%   79.69%   -0.02%     
+ Complexity     7275     7272       -3     
============================================
  Files           802      802              
  Lines         23700    23700              
  Branches       4661     4661              
============================================
- Hits          18891    18888       -3     
  Misses         4055     4055              
- Partials        754      757       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DenizAltunkapan DenizAltunkapan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for your contribution

@DenizAltunkapan DenizAltunkapan merged commit 42007c8 into TheAlgorithms:master May 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve documentation for LinearSearch implementation

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.