ctci-solutions
ctci-solutions copied to clipboard
Possible error in AnimalShelter (ch.3)
Hi,
I think that the book, when it says "any animal", means the oldest animal in the structure (among cats and dogs), not "just any".
https://github.com/w-hat/ctci-solutions/blob/5e78d820f519e2c5e22c99c995263e3d77c9be9c/ch-03-stacks-and-queues/06-animal-shelter.py#L12