#linkedqueue without rear pointer?
9 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @bright thunder! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Canyou show what you have so far?
nevermind, i just solved it (i think)
LinearNode<T> node = new LinearNode<T>(element);
if(count == 0){
front = node;
}else{
LinearNode<T> current = front;
while(current.getNext() != null){
current = current.getNext();
}
current.setNext(node);
}
count++;
} ```
This message has been formatted automatically. You can disable this using /preferences.
looks good
thank you! sometimes i get overwhelemed when doing problems and forget that i know how to do them haha
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.