Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shubham8550/competitive-programing-cpp


https://github.com/shubham8550/competitive-programing-cpp

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Competitive-Programing-Cpp

- stoi (str , 0 ,2 ) for binary
- For number to binery string, ie where 32 is number of bits u want

```
bitset<32>(n).to_string()
```

- while(cin) cin gives false if theres nothing

- first challange link

> https://assessment.hackerearth.com/challenges/college/iiit-allahabad-test-draft-2-15/problems/

- for math /cp mathy problems

> https://projecteuler.net/

***

- For uppercase/lowercase altaration [From Monk_and_his_love_for_Primes](Monk_and_his_love_for_Primes.cpp)

```c++
return (c <= 'Z' ? (c - 'A') + 'a' : (c - 'a') + 'A');

```

---

## Bookmarks

### To improve Speed(Time complexity)

- [Pre Computation](pre_computation.cpp)
- [Hashing](Hashing.cpp)
- [Prefix Sum 1D](Prefix-Sum.cpp)
- [prefix Sum 2D](Prefix-sum-2D.cpp)