GithubHelp home page GithubHelp logo

shikha-code36 / competitive-python Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 3.0 38 KB

Python Algorithms Package used in competitive programming

Home Page: https://pypi.org/project/competitivepython/

License: MIT License

Python 100.00%
algorithms algorithms-and-data-structures competitive-coding competitive-programming data-structures graph-algorithms python python-ds-algo searching-algorithms sorting-algorithms

competitive-python's Issues

Update error message in linear search function

The current error message in the linear_search function says "An error occurred during binary search". This is misleading because the function is actually a linear search, not a binary search. The error message should be updated to reflect this.

Proposed Change:
Update the error message in the linear_search function from:
logging.exception("An error occurred during binary search: %s", e)

To :
logging.exception("An error occurred during linear search: %s", e)

This will help users better understand the nature of the error and what function it occurred in.

I already made a pull request on this issue - #1

Thank you for considering my contribution. ๐Ÿค

Add sequential search code to the searches directory

I noticed that the searches directory of this repository does not currently contain a sequential search implementation. I would like to add this functionality by creating a new module in the searches directory. The module would contain a function called sequential_search that takes an input list and target value and returns the index of the target value in the list, or -1 if the target value is not found.
Please assign this issue to me and then I will create a new branch to add this code, and create a pull request once it is completed.
Thank you for considering this contribution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.