Closed Gargee07 closed 8 months ago
Hi! @Gargee07 there is an error in the code, please check, resolve then submit it.
Hello @Chaitralikore I have made some changes, simplified the code, and checked for all possible errors and test cases from my side. Can you please review it again? Thankyou!
@Gargee07
Main.java:42: error: class Stack_Using_Queues is public, should be declared in a file named Stack_Using_Queues.java public class Stack_Using_Queues { ^ 1 error
@Chaitralikore, Analyzing the error that you have mentioned, I have uploaded a new Main.java file. I request you to review that, please. Thankyou!
Compilation failed due to following error(s) Main.java:42: error: class Stack_Using_Queues is public, should be declared in a file named Stack_Using_Queues.java public class Stack_Using_Queues { ^ 1 error
Hi! @Gargee07 please check and run the code before submitting.
@Chaitralikore, I sincerely request that you check the Main.java file that was uploaded two days ago. I assure you that I ran the code successfully on IDEs as well as online compilers multiple times before uploading it from my side. If there are still any other problems regarding this issue, I will do my best to resolve them.
@Gargee07 please share the screen shot after running the code.
@Chaitralikore if you are using online compiler to check the code please comment out the package declaration line and then try running the code.
56
Programming Language used : Java Implemented Push operation costly approach