CtCI-6th-Edition-Python icon indicating copy to clipboard operation
CtCI-6th-Edition-Python copied to clipboard

Cracking the Coding Interview 6th Ed. Python Solutions

Results 7 CtCI-6th-Edition-Python issues
Sort by recently updated
recently updated
newest added

I believe this also works with O(n), but is shorter and more understandable.

check each char and replace spaces with %20 Time Complexity = o(n)

I added a solution for bidirectional search. This type of search is explained in chapter 04 but it's not mentioned in the solutions. I think is a good variation of...

feature(C02_P04): added solution - lr_partition

This commit brings several improvements to your code in Chapter 1: 1. **Python 3.12 Upgrade & Modernization**: * I updated all Python files in `chapter_01` to be compatible with Python...

The dequeue_cat and dequeue_dog methods throw an error if the dequeued node is the first node, since it attempts to call the next_node attribute in None

Add a more space efficient solution and add proper testing. The solution is O(n) time and O(1) space.