Skip to content

Simple python code snippet for animal shelter data structure

Notifications You must be signed in to change notification settings

Satosh-J/Animal-Shelter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Animal-Shelter

Simple python code snippet for animal shelter data structure

Animal Shelter: An animal shelter, which holds only dogs and cats, operates on a strictly "first in, first out" basis. People must adopt either the "oldest" (based on arrival time) of all animals at the shelter, or they can select whether they would prefer a dog or a cat (and will receive the oldest animal of that type). They cannot select which specific animal they would like.

Create the data structures to maintain this system and implement operations such as enqueue, dequeueAny, dequeueDog, and dequeueCat.

About

Simple python code snippet for animal shelter data structure

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages