Mozilla-Campus-Club-Cummins / CompetitiveProgramming-HacktoberFest23

1 stars 25 forks source link

Solution to Issue #56 Stack using two queues #72

Closed Gargee07 closed 8 months ago

Gargee07 commented 8 months ago

56

Programming Language used : Java Implemented Push operation costly approach

Chaitralikore commented 8 months ago

Hi! @Gargee07 there is an error in the code, please check, resolve then submit it.

Gargee07 commented 8 months ago

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!

Chaitralikore commented 8 months ago

@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

Gargee07 commented 8 months ago

@Chaitralikore, Analyzing the error that you have mentioned, I have uploaded a new Main.java file. I request you to review that, please. Thankyou!

Chaitralikore commented 8 months ago

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.

Gargee07 commented 8 months ago

@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.

Chaitralikore commented 8 months ago

@Gargee07 please share the screen shot after running the code.

Gargee07 commented 8 months ago

image

Screenshot 2023-10-30 195558
Chaitralikore commented 8 months ago

Screenshot 2023-10-30 232943

Gargee07 commented 8 months ago

@Chaitralikore if you are using online compiler to check the code please comment out the package declaration line and then try running the code.