StBogdan/CTCI_python
소개
Solutions for Interview questions appearing in the 6th edition of Cracking the Coding Interview (CTCI)
학습 및 교육측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalCracking the Coding Interview (6th edition) Python Solutions
Existing Python solutions can be found officially here and user-created here
Current progress
| Nr. | Chapter | Done | Total | Ommited | Notes | |:---: |:----------------------: |:----: |:-----: |:-------: | :-------: | | 1 | Array and String | 9 | 9 | | | | | 2 | Linked Lists | 8 | 8 | | | | 3 | Stacks and Queues | 6 | 6 | 1 | | | 4 | Trees and Graphs | 12 | 12 | | | | 5 | Bit Manipulation | 8 | 8 | | | | 6 | Math and Logic Puzzles | 10 | 10 | 4 | | | 7 | OO Design | 0 | 12 | | | | 8 | Recursion and DP | 14 | 14 | | | | 9 | System Design | 0 | 8 | | See the System Design Primer | | 10 | Sorting and Searching | 9 | 11 | 1 | | | 11 | Testing | 4 | 6 | 4 | | | 12 | C/C++ | 11 | 11 | 11 | | | 13 | Java | 0 | 8 | | | | 14 | Databases | 0 | 7 | | | | 15 | Threads and Locks | 0 | 7 | | | | 16 | Moderate | 26 | 26 | 1 | | | 17 | Hard | 26 | 26 | | |
Running the solutions
For convenience, the project has a setup.py that specifies a package, for local path resolving.
This can be installed locally in the python (virtual)environment by using:
pip install -e .
Problems can be run by running the file, most should have a main method with some sample input, e.g. :
python p16_20.py
Some highlights
Langton's ant (Chapter 16, Problem 22)

An interesting example of emergent patterns from simple rules. Raise the number of iterations in the code to see more of the "highway" form.
For more information, check the wikipedia link.
Tree visualising in VS Code

This requires graphviz to be installed locally and the extension added to VS Code.
The one used in the screenshot above can be found here.
관련 프로젝트 살펴보기
불러오는 중…