Skip to content
New issue

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

Solution to Issue #56 Stack using two queues #72

Conversation

Gargee07
Copy link
Contributor

#56
Programming Language used : Java
Implemented Push operation costly approach

Programming Language used : Java
Implemented Push operation costly approach
@Chaitralikore
Copy link

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

@Gargee07
Copy link
Contributor Author

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
Copy link

@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
Copy link
Contributor Author

@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
Copy link

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
Copy link
Contributor Author

@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
Copy link

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

@Gargee07
Copy link
Contributor Author

image

Screenshot 2023-10-30 195558

@Chaitralikore
Copy link

Screenshot 2023-10-30 232943

@Gargee07
Copy link
Contributor Author

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

@ManasiGDeshmukh ManasiGDeshmukh merged commit a3ce59e into Mozilla-Campus-Club-Cummins:main Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants