Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ranveeraggarwal/leetcode-cpp
Leetcode Solutions in Modern-ish C++
https://github.com/ranveeraggarwal/leetcode-cpp
algorithms cpp leetcode
Last synced: 17 days ago
JSON representation
Leetcode Solutions in Modern-ish C++
- Host: GitHub
- URL: https://github.com/ranveeraggarwal/leetcode-cpp
- Owner: ranveeraggarwal
- License: mit
- Created: 2020-05-10T20:17:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-16T19:02:21.000Z (over 4 years ago)
- Last Synced: 2024-10-27T19:29:31.652Z (2 months ago)
- Topics: algorithms, cpp, leetcode
- Language: C++
- Size: 20.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
LeetCode Solutions in C++
===This is a repository of the LeetCode problems I have started solving in 2020. An attempt has been made to use C++ with modern features. Since this is an attempt at learning, some initial solutions might lack some awesome modern C++ idioms. They will improve them as I revisit some of those constucts/problems.
## Algorithms Explained
Once in a while, when I find an awesome algorithm which is a little hard to understand, I try to explain it in a discussion post. Linking all those here (in a sorted order).* [169 | Explanation of Moore's Algorithm (Ft. Star Wars)](https://leetcode.com/problems/majority-element/discuss/616285/169-explanation-of-moores-algorithm-ft-star-wars)
## Variable Naming
* If `pSomething` is of type `int`, that means it's a moving index
* Binary searches use `lo`, `hi` and `mid` for low, high and middle elements