Collection of Algorithms and Data Structures in different languages
cd rust
cargon run# to compile and run
cd cpp
g++ -std=c++17 src/main.cpp src/chapter_1_binary_search.cpp src/chapter_2_selection_sort.cpp -o target/binary_search && target/binary_searchThis section is for learning purposes. Those data structure may or may not be suitable for real world usage.
mdkir build
gcc [SOURCE_FILE] -o build/[OUTPUT_FILE] && ./buld/[OUTPUT_FILE] # the position of -o flag matters
gcc -Wall -Wextra data_structures/c/main.c data_structures/c/vector.c -o build/main && ./build/main-Wall— enables most common warnings (unused variables, missing returns, etc.)-Wextra— enables additional warnings that-Walldoesn't cover (unused parameters, sign comparison, etc.)-o vector/main— sets the output file name-Werror— (optional) treats warnings as errors, forces you to fix them before the code compiles