what this error means?
Main.java:2: error: class LinkedList is public, should be declared in a file named LinkedList.java
public class LinkedList {
^
1 error
what this error means?
Main.java:2: error: class LinkedList is public, should be declared in a file named LinkedList.java
public class LinkedList {
^
1 error
@Keshav,
It is a technical glitch most likely.
https://ide.codingblocks.com/s/241455 here is the corrected code. Just change the class name to Main instead of LinkedList. Your logic is correct.
test cases are not passing