Giter Site home page Giter Site logo

rishabhgarg25699 / competitive-programming Goto Github PK

View Code? Open in Web Editor NEW
63.0 3.0 120.0 317 KB

This repository contains some useful codes, techniques, algorithms and problem solutions helpful in Competitive Coding. Join with me on telegram group https://t.me/joinchat/GL4Y8RREZbz-Cp78R869CQ

C++ 61.00% Java 15.87% Python 11.17% C 10.37% JavaScript 1.25% Haskell 0.35%

competitive-programming's Issues

Kadane's Algorithm

Implementation of The Maximum Sub Array Sum Problem using Kadane's Algroithm in C++.

String Hashing.(C++)

Based on hash calculation of string.

1 .Calculation of hash (polynomial rolling hash function).
2 .Using hash calculated to Search for duplicate strings in an array of strings in O(nm+nlogn) time.

Based on hash calculation of substring.

  1. Pattern matching in a string in O(n) time (Rabin-Karp ).
  2. Calculating the number of different substrings of a string in O(n2 logn).
  3. Finding all sub-palindromes in O(N) .

Prim's Algorithm

To implement greedy approach to find Minimum Spanning Tree for a graph

regarding java

There is less code support for java in this repo. Can I add it in java?

Such as Binary Search, Insertion sort, Trees and Graphs, etc.

Traversals , Height , mirror image and copy of Binary Tree

Many operations can be performed on a given binary tree which are useful in competitive programming problems . I am interested to implement pre-order , post-order and in-order traversal , finding height , mirror image and copy of a binary tree .

Implementation of segment tree.

#finding queries based on range .
1.sum of range of queries.
2.min. in the range.
3. max in the query.
4. gcd of the range.
All queries in O(logn) and building time is O(n)

Computing Euler Totient Function in sqrt(N)

Euler Totient function is a function that gives the number of coprime integers from 1 to N. This algorithm will compute the number of coprime integers for any given N in sqrt(N) time. I would like to work on this.

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.