Follow me at LeetCode
######## Ubuntu/Debian ############
sudo apt-get update
sudo apt-get install -y \
g++ \
cmake \
ninja-build
mkdir build
cd build
cmake .. -G Ninja -DCXX11=ON
ninja
For Example
./347.top-k-frequent-elemnts
- Use GTest for testing instead of main()
- Load test-case from txt file
- Implement common container such as TreeNode
- Add CMake-make workflow for CI/CD