https://github.com/belanasaikiran/dsa-cpp
https://github.com/belanasaikiran/dsa-cpp
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/belanasaikiran/dsa-cpp
- Owner: belanasaikiran
- License: unlicense
- Created: 2024-08-28T18:40:41.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-23T10:42:07.000Z (5 months ago)
- Last Synced: 2025-01-23T11:32:30.876Z (5 months ago)
- Language: C++
- Size: 118 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DSA with C++
### Basics
1.[Pointers](./pointers/main.cpp)
2. [Classes](./classes/main.cpp)
1. [Insertion Sort](./Insertion_Sort/main.cpp)
- Initially, it assumes the first element is already sorted. It takes the second element of an array and compares with first.
- If the first element is greater than 2nd, it swaps or else it ignores.
- Next, it takes the 3rd element, checks with 2nd if smaller, swap and repeat the same with 1st element.
- and so on..### Run below command to look for more error occured during program execution
```bash
g++ -fsanitize=address -g ./3-Longest_Substring_without_repeating_characters.cpp -o out
```