You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+24-8
Original file line number
Diff line number
Diff 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)
2
2
> 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)
3
3
4
4
### Current progress
@@ -23,16 +23,32 @@
23
23
| 17 |[Hard](chapter_17)| 26 | 26 ||
24
24
25
25
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
-
32
26
### Running the solutions
33
27
34
28
For convenience, the project has a `setup.py` that specifies a package
35
29
This can be installed locally in the virtualenvironment by using
36
30
```bash
37
31
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
+

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
+

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)
0 commit comments