We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
public void display() { Node current=head; for (int i = 1; i <= size; i++) { System.out.println(current.next.value); current=current.next; } }
public static void main(String[] args) { CircleLinkList<String> cl= new CircleLinkList<>(); cl.append("hello"); cl.append("world"); cl.append("and"); cl.append("java"); cl.display(); // System.out.println("hello java"); }
/**OutPut: Is it wrong? i have no idea java null java null */
The text was updated successfully, but these errors were encountered:
I agree that there's something wrong with this one. And I also found that the remove method doesn't work properly, it doesn't decrease the list size.
would you mind if I work on this one?
Sorry, something went wrong.
fix null value issue stated in TheAlgorithms#436
c4a8e1e
595cc8f
No branches or pull requests
public void display()
{
Node current=head;
for (int i = 1; i <= size; i++) {
System.out.println(current.next.value);
current=current.next;
}
}
/**OutPut: Is it wrong? i have no idea
java
null
java
null
*/
The text was updated successfully, but these errors were encountered: