Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack and Queues Job Simulation #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dri19tcc
Copy link

I found this to be very confusing. I first solved this by writing one class with methods that used the ruby methods pop and shift. I went back and solved this using the Stacks.rb and Queues.rb files that we created in class. I created a new class and initialized it so that I could check everything was working. The data at the bottom that is not commented out are my tests. I used constants so there are no magic numbers as well as trying to future proof so I can update this as a company size may change and I only have to change it there.

…e file. Then used Stack and Queues that we made in class to make it work
@sudocrystal
Copy link

This looks really good!
👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants