Skip to content

romanprograms/algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Structures and Algorithms

Collection of Algorithms and Data Structures in different languages

Rust

cd rust
cargon run

C++

# 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_search

Data structures

This section is for learning purposes. Those data structure may or may not be suitable for real world usage.

One way to compile

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

Compiler Flags

  • -Wall — enables most common warnings (unused variables, missing returns, etc.)
  • -Wextra — enables additional warnings that -Wall doesn'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

About

Algorithms and data structures in different languages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors