Initial commit
commit 1a2ee062ed91af77598451c8ee47de8998852cc9
3 changed files with 61 additions and 0 deletions
.gitignore ADDED
| @@ -0,0 +1,6 @@ | ||
| 1 | +__pycache__/ | |
| 2 | +*.pyc | |
| 3 | +.venv/ | |
| 4 | +.env | |
| 5 | +budget.json | |
| 6 | +notes.txt | |
LICENSE ADDED
| @@ -0,0 +1,21 @@ | ||
| 1 | +MIT License | |
| 2 | + | |
| 3 | +Copyright (c) 2025 glibCode | |
| 4 | + | |
| 5 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 6 | +of this software and associated documentation files (the "Software"), to deal | |
| 7 | +in the Software without restriction, including without limitation the rights | |
| 8 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 9 | +copies of the Software, and to permit persons to whom the Software is | |
| 10 | +furnished to do so, subject to the following conditions: | |
| 11 | + | |
| 12 | +The above copyright notice and this permission notice shall be included in all | |
| 13 | +copies or substantial portions of the Software. | |
| 14 | + | |
| 15 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 16 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 17 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 18 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 19 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 20 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
| 21 | +SOFTWARE. | |
README.md ADDED
| @@ -0,0 +1,34 @@ | ||
| 1 | +# Data Structures & Algorithms | |
| 2 | + | |
| 3 | +Example code and exercises for the glibCode course **[Data Structures & Algorithms](https://glibcode.net/courses/algorithms/)** (Intermediate, about 16 hours). | |
| 4 | + | |
| 5 | +Big-O, arrays, hash maps, trees, graphs and dynamic programming, with 120 interview-style problems and hints. | |
| 6 | + | |
| 7 | +## Lessons | |
| 8 | + | |
| 9 | +| # | Lesson | Code | | |
| 10 | +| --- | --- | --- | | |
| 11 | +| 1 | Big-O in plain words | [`lessons/01-big-o-in-plain-words`](lessons/01-big-o-in-plain-words/) | | |
| 12 | +| 2 | Arrays and two pointers | [`lessons/02-arrays-and-two-pointers`](lessons/02-arrays-and-two-pointers/) | | |
| 13 | +| 3 | Hash maps | [`lessons/03-hash-maps`](lessons/03-hash-maps/) | | |
| 14 | +| 4 | Stacks and queues | [`lessons/04-stacks-and-queues`](lessons/04-stacks-and-queues/) | | |
| 15 | +| 5 | Binary search | [`lessons/05-binary-search`](lessons/05-binary-search/) | | |
| 16 | +| 6 | Trees and recursion | [`lessons/06-trees-and-recursion`](lessons/06-trees-and-recursion/) | | |
| 17 | +| 7 | Graphs: BFS and DFS | [`lessons/07-graphs-bfs-and-dfs`](lessons/07-graphs-bfs-and-dfs/) | | |
| 18 | +| 8 | Dynamic programming | [`lessons/08-dynamic-programming`](lessons/08-dynamic-programming/) | | |
| 19 | +| 9 | Mock interview | [`lessons/09-mock-interview`](lessons/09-mock-interview/) | | |
| 20 | + | |
| 21 | +## Getting started | |
| 22 | + | |
| 23 | +```sh | |
| 24 | +git clone https://git.glibcode.net/glibcode/algorithms.git | |
| 25 | +cd algorithms | |
| 26 | +``` | |
| 27 | + | |
| 28 | +Python 3.10 or newer. Lesson 9 needs `pip install -r requirements.txt`. | |
| 29 | + | |
| 30 | +Questions? Ask in the course forum or write to help@glibcode.net. | |
| 31 | + | |
| 32 | +## License | |
| 33 | + | |
| 34 | +The code is MIT licensed (see `LICENSE`). The lesson texts are © glibCode. | |