I did an implementation of a double ended queue using arrays. I thought everything works but it stops working correctly when I removeRight() and then insertleft() it gives me bad out put.
this is my...
Type: Posts; User: twi
I did an implementation of a double ended queue using arrays. I thought everything works but it stops working correctly when I removeRight() and then insertleft() it gives me bad out put.
this is my...
every time i add an item if it contains in the array then boolean add is false and nothing happens like in the output number 2... every time i add a number it enters the item in the position it needs...
something is wrong with my boolean add method... something is not working good with my loops. can anyone help me please.
this is the code I have:
public boolean add(AnyType x)
{
...