Skip to content

Conversation

saksham23467
Copy link

Description of Change

Added a C++ implementation of the Jump Search algorithm in searching/jump_search.cpp.
The implementation includes:

  • A function jump_search with proper documentation
  • An example usage in the main() function
  • Inline comments for clarity following Doxygen style

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes

This is my first open source PR. Feedback is welcome!


return -1;
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

please add a tests function, The main function should only contain a call to tests function

#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
using namespace std;

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.

3 participants