Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 583 Bytes

File metadata and controls

32 lines (20 loc) · 583 Bytes

Data Structure & Algorithm

O(N) complexity means the time needed for the algorithm to work increases step by step as the amount of data it processes gets bigger.

Compile single source file:

 $ clang++ ./main.cpp -o out   

Build the project using cmake

# From your project root directory
$ cmake -S . -B cmake-build-debug

# Build the project
$ cmake --build cmake-build-debug

Debug

# Set the debug pointing your executable
$ lldb ./exec
$ breakpoint set --file ./path/main.cpp --line 10
$ print variable_name