/leetcode

CPP codes for leetcode

Primary LanguageC++Apache License 2.0Apache-2.0

LeetCoding Record

main_workflow

Follow me at LeetCode

How to use this project

Install Pre-requires

######## Ubuntu/Debian ############
sudo apt-get update
sudo apt-get install -y \
    g++ \
    cmake \
    ninja-build

Build Project

mkdir build
cd build
cmake .. -G Ninja -DCXX11=ON
ninja

Run Certain Problem

For Example

./347.top-k-frequent-elemnts

TODO

  • 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