Skip to content

Stack and Queues Job Simulation#17

Open
dri19tcc wants to merge 1 commit intoAda-C5:masterfrom
dri19tcc:master
Open

Stack and Queues Job Simulation#17
dri19tcc wants to merge 1 commit intoAda-C5:masterfrom
dri19tcc:master

Conversation

@dri19tcc
Copy link
Copy Markdown

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
Copy Markdown

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