Can be used in Visual Studio Code
Features:
- Building C++ files using Bazel in Visual Studio Code
- Testing your code using Google Test
- Debugging with CodeLLDB Extension to provide pretty printing for STL containers such as
std::map
andstd::vector
.
You can run this using blaze
:
bazel run src/main:main
You can run unit tests using blaze
:
bazel test tests:tests
Reused BST code from HW 5 for question 6 implementation. Inserted the element at the desired index as the root of the BST. As a result, all of the elements to the left of the root in the vector will be less than it.