Skip to content

deanagan/practice-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Practicing C++

A collection of C++ source code for popular coding platforms like Leetcode, Hackerrank, etc

How To Run the Source

  1. Solutions are in the lib folder and tests in the test folder. One file per solution.
  2. To build only, enter bazel build ... or use the provided build script.
  3. To build and execute the tests in the test folder, enter bazel test ... --test_output=all or use provided test script.

Notes

  • When running on systems where you need to specify the exact C++ compiler version, you can add --cxxopt=-std=c++17 e.g.

    • Build Only: bazel build ... --cxxopt=-std=c++17
    • Build and Run Test: bazel test ... --cxxopt=-std=c++17 --test_output=all
  • If you're on *nix type system and want to run valgrind, you can do it against the test:
    valgrind bazel-bin/test/tests

About

A practice repo using C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published