0

What's wrong in my code?

I have written code for code coach problem mathematics. In which I'm not getting any issue from my end testing. But 2 hidden test cases are failed. Please help me out. Here is the Java code: https://code.sololearn.com/cbJ7iYT9dhOF/?ref=app

3rd Jan 2023, 3:55 PM
Srikanth
Srikanth - avatar
3 Answers
+ 3
As I understand the task, the input can have an equation such as; "3+3*3-3/3". I don't think your code deals with anything more than 2 numbers and a symbol.
3rd Jan 2023, 7:58 PM
Ausgrindtube
Ausgrindtube - avatar
+ 2
look on Task Input format: --snip-- An expression can include multiple operations --snip-- Its can be so (5+7*6+7) (2*2+3)etc.. Test #4 and Test #5šŸ‘† ,also you need change your algorithm for this solution.
3rd Jan 2023, 8:59 PM
Smith Welder
Smith Welder - avatar
+ 1
Correct, Smith Welder Ausgrindtube I have written the code for accepting one operator only. Let me check on this. Thank you so much.
4th Jan 2023, 2:15 AM
Srikanth
Srikanth - avatar