Skip to content

Commit 5086d11

Browse files
committed
Updated readme, added some pictures
1 parent 9ff8b2c commit 5086d11

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

README.md

+24-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Python Solutions to Cracking the Coding Interview (6th edition)
1+
# Python Solutions to Cracking the Coding Interview (6th edition)
22
> Exiting Python solutions can be found [officially here](https://github.com/careercup/CtCI-6th-Edition-Python/tree/e6bc732588601d0a98e5b1bc44d83644b910978d) and [user-created here](https://github.com/w-hat/ctci-solutions)
33
44
### Current progress
@@ -23,16 +23,32 @@
2323
| 17 | [Hard](chapter_17) | 26 | 26 | |
2424

2525

26-
### Schedule
27-
- Week 1: Chapter 4: Graphs and Trees
28-
- Week 2: Chapter 10: Sorting and Searching
29-
- Week 3: Chapter 1: Arrays and Strings
30-
- Week 4: Halted
31-
3226
### Running the solutions
3327

3428
For convenience, the project has a `setup.py` that specifies a package
3529
This can be installed locally in the virtualenvironment by using
3630
```bash
3731
pip install -e .
38-
```
32+
```
33+
34+
Problems can be run by running the file, most should have a main method.
35+
```bash
36+
python p16_20.py
37+
```
38+
39+
## Some highlights
40+
41+
### Langton's ant (Chapter 16, Problem 22)
42+
43+
![Result pattern](bonus/ant.png)
44+
45+
An interesting example of emergent patterns from simple rules. Raise the number of iterations in the code to see more of the "highway" form.
46+
For more information, check the [wikipedia link](https://en.wikipedia.org/wiki/Langton%27s_ant).
47+
48+
### Tree visualising in VS Code
49+
50+
![Example tree](bonus/graphs.png)
51+
52+
This requires graphviz to be installed locally and the extension added to VS Code.
53+
The one used in the screenshot can be found [here](https://marketplace.visualstudio.com/items?itemName=tintinweb.graphviz-interactive-preview)
54+

bonus/ant.png

41.8 KB
Loading

bonus/graphs.png

107 KB
Loading

0 commit comments

Comments
 (0)