Coder Social home page Coder Social logo

dragonslayerx / competitive-programming-repository Goto Github PK

View Code? Open in Web Editor NEW
440.0 25.0 153.0 150 KB

Competitive Programming templates that I used during the past few years.

License: MIT License

C++ 99.98% Batchfile 0.02%
competitive-programming data-structures algorithms algorithms-implemented dijkstra segment-tree floyd-warshall bellman-ford-algorithm biginteger graphs matching bipartite-graphs disjoint-sets dynamic-programming fft lca matrix-exponentiation recurrence string hashing

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 wildfootw avatar malvikabhalla99 avatar shaily20 avatar

Stargazers

AYOKANMI ADEJOLA avatar  avatar @sharique8 avatar Cavid Abbasaliyev avatar Pradeep KM avatar Vũ Khánh Hưng avatar Franky avatar Heitor Rapela Medeiros avatar the void avatar Safa avatar Abdalrahman Magdy Faied avatar Golam Rabbani avatar Pavel Matsula avatar Angelos Mts avatar German Apple avatar Bima Putra Lamanda avatar  avatar Rana Banerjee avatar  avatar Melike Vurucu avatar  avatar Prathamesh Mandge avatar taw420 avatar Prithvi Raj avatar Mustakim Billah avatar  avatar Alex Gliesch avatar Nakula avatar Samuel Mesquita  avatar Rohan avatar Luis Alberto avatar Prathamesh Dongarkar avatar Carlos Gómez Amador avatar Mohammed Junaid Anwar avatar Subhey Sadi avatar Mohab Zaghloul avatar Karim Mahmoud avatar Abdelhamid Emad avatar  avatar Youssef Rabie avatar Abdelrahman Hamdy avatar Zeyad Tarek avatar Youssef Ashraf avatar varshil kavathiya avatar  avatar harshfeudal avatar Ankitkumar Santosh Singh avatar  avatar Ridwan Haider avatar  avatar  avatar Umang avatar  avatar Alaa Anees   avatar Clarence Koh avatar hunt3r 1337 avatar  avatar Balaji avatar  avatar  avatar  avatar Akhilan S avatar  avatar Ayush Ray avatar  avatar Maulidiyah Nur avatar Vishveswar Choudhary avatar Md Jillur Rahman Zihad avatar YiLin Zhang avatar ZiTian Shi avatar abhinash_giri avatar Db_123 avatar bluekid avatar Aditya Patel avatar Nycolas Coelho de Abreu avatar  avatar Neeraj Gupta avatar Farhana Rahman avatar Divyanshu Sharma avatar Xavier Nico avatar Tejas Vaidya avatar  avatar Ishita Saxena avatar Girish Duvuru avatar Anshul Sohal avatar Manan Shah avatar ZAYED AL-GAWI avatar  avatar Atithi Kumar singh avatar Georgii Alexandrov ☮️ avatar  avatar Yuvanna Bawa avatar _simran_1031 avatar Eugene Melnyk avatar Chirantan Muliya avatar Maria-Cristiana Gîrjău avatar Dylan Momplaisir avatar Mehedi Hasan avatar BigFlood avatar GAURAV avatar

Watchers

Maciej A. Czyzewski avatar  avatar d.haijian avatar Luis Alberto avatar Abhinav Saxena avatar Abhishek Shetty avatar Jauhar Arifin avatar  avatar Dino Tumu avatar mohit ojha avatar Mark avatar  avatar jason, Lai avatar  avatar Utkarsh Srivastava avatar charles morin avatar Varun Singh avatar Shriram Jagannathan avatar Oromion avatar Tanya Gupta avatar  avatar David Kimolo avatar Muhammed YILMAZ avatar Praveen Gupta avatar Pan Wenwen avatar

competitive-programming-repository's Issues

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

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. :)

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.