Data Structures, and algorithms
- Linux is a requirement, because of the scripts and vs code properties, but that's only for execution helpers. If you can set-up execution for your environment (Windows/Mac/etc.) then go ahead and run the
.cppfiles using those. - Run
bash setup.shto install pre-requisites. One additional pre-requisite is installing VSCode Microsoft C++ extension to havecppdbg, this is a debugger with integration with VSCode so we can use IDE for debugging. If not using vscode or not needing IDE based debugging, feel free to avoid installing the extension. - To run any problem, just run
bash run.sh <cpp file path>. bash snop.sh <file problem URL>can help set up new problems (parses the URL, creates folders and then copies thetemplate.cppand some other small first time setups).
- Hackerrank
- https://neetcode.io/practice?tab=neetcode250
- Current dir ? https://stackoverflow.com/a/32024051/13036358 Useful if launching the
run.shwith an absolute path, co the executable knows which directory it got called from and could createinput.txtandoutput.txtin the dir. - https://en.cppreference.com/w/cpp/language/types for built-in c++ data types
- In hackerrank's between 2 sets, we use LCM and GCD. Still have to learn how exactly GCD is calculated and what it is.
- https://www.hackerrank.com/challenges/simple-array-sum/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/compare-the-triplets/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/a-very-big-sum/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/diagonal-difference/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/plus-minus/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/staircase/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/mini-max-sum/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/birthday-cake-candles/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/time-conversion/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/grading/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/apple-and-orange/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/kangaroo/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/between-two-sets?isFullScreen=true
- https://www.hackerrank.com/challenges/breaking-best-and-worst-records/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/the-birthday-bar/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/divisible-sum-pairs/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/migratory-birds/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/day-of-the-programmer/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/bon-appetit/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/counting-valleys?isFullScreen=true
- https://www.hackerrank.com/challenges/electronics-shop?isFullScreen=true
- https://www.hackerrank.com/challenges/cats-and-a-mouse?isFullScreen=true
- https://www.hackerrank.com/challenges/picking-numbers?isFullScreen=true
- https://www.hackerrank.com/challenges/designer-pdf-viewer?isFullScreen=true
- https://www.hackerrank.com/challenges/utopian-tree?isFullScreen=true
- https://www.hackerrank.com/challenges/circular-array-rotation?isFullScreen=true
- https://www.hackerrank.com/challenges/angry-professor?isFullScreen=true
- https://www.hackerrank.com/challenges/permutation-equation?isFullScreen=true
- https://www.hackerrank.com/challenges/find-digits?isFullScreen=true
- https://www.hackerrank.com/challenges/the-hurdle-race?isFullScreen=true
- https://www.hackerrank.com/challenges/cut-the-sticks?isFullScreen=true
- https://www.hackerrank.com/challenges/beautiful-days-at-the-movies?isFullScreen=true
- https://www.hackerrank.com/challenges/kaprekar-numbers?isFullScreen=true
- https://www.hackerrank.com/challenges/cavity-map?isFullScreen=true
- https://www.hackerrank.com/challenges/tutorial-intro/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/insertionsort1/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/insertionsort2/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/runningtime/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/find-the-median/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/closest-numbers/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/mark-and-toys/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/sherlock-and-array/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/jim-and-the-orders/problem?isFullScreen=true
- https://www.hackerrank.com/challenges/missing-numbers/problem?isFullScreen=true