The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 6 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Hello, I have a difficulty in this question it is in my HW2 for Data Structures course,
Â
Create a java class called DoubleStack to represent a double stack data structure it is like two stacksÂ
Â
sharing the same array, one from the left side and the other one from the right side. However, this doesÂ
Â
not mean the array is divided equally between them. It depends on pop and push operations for each oneÂ
Â
of them. DoubleStack will have: isEmpty1(), size1(), push1(), top1(), pop2(), isEmpty2(), size2(), push2
Â
(), top2(), pop2(). write a main function to test them.
Â
Please help me to solve it, the due is tonight (midnight) Apr23rd, 17 11:59 pm  Â
Â
Note: it is the 2nd question in the file attached!
Attachments:
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly