{"id":16417548,"url":"https://github.com/careercup/CtCI-6th-Edition-Python","last_synced_at":"2025-10-26T20:30:48.414Z","repository":{"id":37259592,"uuid":"51567632","full_name":"careercup/CtCI-6th-Edition-Python","owner":"careercup","description":"Cracking the Coding Interview 6th Ed. Python Solutions","archived":false,"fork":false,"pushed_at":"2023-09-12T05:10:14.000Z","size":313,"stargazers_count":5029,"open_issues_count":2,"forks_count":1832,"subscribers_count":126,"default_branch":"master","last_synced_at":"2025-02-06T18:11:38.518Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/careercup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-12T04:47:40.000Z","updated_at":"2025-02-05T11:19:26.000Z","dependencies_parsed_at":"2024-10-11T07:12:12.713Z","dependency_job_id":null,"html_url":"https://github.com/careercup/CtCI-6th-Edition-Python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/careercup%2FCtCI-6th-Edition-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/careercup%2FCtCI-6th-Edition-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/careercup%2FCtCI-6th-Edition-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/careercup%2FCtCI-6th-Edition-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/careercup","download_url":"https://codeload.github.com/careercup/CtCI-6th-Edition-Python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238394323,"owners_count":19464583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T07:11:34.420Z","updated_at":"2025-10-26T20:30:43.018Z","avatar_url":"https://github.com/careercup.png","language":"Python","readme":"# Python Solutions to *Cracking the Coding Interview, 6th Edition*\n\nThese are **Python** solutions for the book [Cracking the Coding Interview, 6th Edition](https://www.careercup.com/book) by *Gayle Laakmann McDowell*.\n\n## How to use?\n\nTo run the programs, just use the `python chapter_X/filename.py` command.\n\nTo run the tests: `pip install pytest` and `pytest`\n\n## Contributions\n\nContributions welcome! Please submit separate pull requests for each solution you work on.\n\nIn general solutions should fall into one of the following three categories:\n - *algorithm demonstration*.  This is the primary type of problem and solution that the text is concerned with. As\n such, solutions should not use standard library functions in cases that would make it unnecessary to implement the\n algorithm.  The goal of these solutions should be to have an easy to understand solution that demonstrates\n understanding of the algorithm.\n - *python demonstration*.  We also accept solutions that solve the problem in a more practical way, using whatever\n standard library functions are available.  Please do not use any third party dependencies.  These solutions should\n also be easy to understand and good examples of pythonic ways of doing things.\n - *speed demonstration*.  These alternative solutions may be accepted if the fastest way to do something is not very\n readable or intuitive and thus it doesn't fit into the first two categories.\n\nIf you want to do everything really well, here are some guidelines. Solutions should:\n - work with Python 3.6 or greater\n - not depend on third-party libraries (like `numpy`)\n - follow [python style conventions](https://www.python.org/dev/peps/pep-0008/)\n   - lower_case_with_underscores for everything except classes\n   - descriptive, longer variable names\n - be formatted using the [`black`](https://black.readthedocs.io/en/stable/) code formatter\n - include tests to prove they work. [pytest](https://docs.pytest.org/en/stable/) is supported\n - have a clean commit history ideally following the\n [angular commit message convention](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type)\n and including the problem being worked on in parenthesis. For example `feature(C01_P04): added solution`.  The C01_P04\n referring to Chapter 1, Problem 4.  Look at our [commit history](https://github.com/careercup/CtCI-6th-Edition-Python/commits/master) for more examples:\n\nWe'll still work with your contributions even if they don't follow these guidelines so don't let that stop you.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcareercup%2FCtCI-6th-Edition-Python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcareercup%2FCtCI-6th-Edition-Python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcareercup%2FCtCI-6th-Edition-Python/lists"}