Giter Club home page Giter Club logo

competitive-programming-repository's Introduction

Competitive-Programming-Repository

Collection of algorithms and data structures in C++ used widely in Competitive programming contests.

The following topics are covered:

Range Updates and Queries

competitive-programming-repository's People

Contributors

dragonslayerx avatar malvikabhalla99 avatar shaily20 avatar wildfootw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

competitive-programming-repository's Issues

Requirement for new codes.

This library is not exhaustive as it still needs several key algorithms and data structures which are widely used in Competitive Programming. The lack is partially due to my lack of knowledge about them or
my laziness to implement and test them.

I'm listing some of the key algorithms here which this library needs.

  1. A simple concise implementation of Centroid Decomposition, Bridge trees.
  2. Knuth Morris Pratt (KMP), Manacher, Aho corasick : One can find an obselete code of kmp in obselete folder, I have used it several time but code is not concise.
  3. A library for Computational Geometry including some key algorithms like finding convex hull of a set of points.

Any new cool completive programming template is also welcome ! Please report bugs in case u get one during using any of the template.

I would like to invite competitive programming enthusiasts to contribute to this library and let the knowledge grow. :)

src/bigint_library.cpp mis behavior with value 0

If I create Bigint with value 0. stream operation and logical operations seems not work properly. like the example below:

int main() {
    Bigint A("0"); // Construct Bigint using string representation
    Bigint B(0); // Construct Bigint using integer representation
    Bigint C("456789");
    cout << A * B << endl; // Overridden ostream
    cout << A * B + C << endl; // Chaining operations
    cout << (A > B) << endl;
    // logical operations
    if (A > B) cout << "A is greater than B" << endl;
    else cout << "B is greater than A" << endl;
}

Output:


456789
1
A is greater than B

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.