ctci-solutions icon indicating copy to clipboard operation
ctci-solutions copied to clipboard

Possible error in AnimalShelter (ch.3)

Open lucaventurini opened this issue 6 years ago • 0 comments

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

lucaventurini avatar Sep 09 '18 17:09 lucaventurini