RohanGoyal2014 / Competetive-Code-Learns

This repo includes the code that I must remember at all times when I encounter a problem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Competetive-Code-Learns

This repo includes the code that I must remember at all times when I encounter a problem

  1. Large Array can be declared globally
  2. Copy by reference + Global Declarations reduces running time
  3. Avoid endl, it increases runnning time. https://stackoverflow.com/questions/213907/stdendl-vs-n
  4. Bitsets may be highly useful in reducing complexities
    Example: https://www.hackerearth.com/practice/algorithms/graphs/graph-representation/practice-problems/algorithm/utkarsh-in-gardens-february-easy/description/
  5. Custom Lowerbound Function :https://stackoverflow.com/questions/12968498/compare-function-in-lower-bound
  6. Distinct Elements in range l to r using BIT: https://www.geeksforgeeks.org/queries-number-distinct-elements-subarray/
  7. Important DPs:

About

This repo includes the code that I must remember at all times when I encounter a problem


Languages

Language:C++ 100.0%