+ 1
Code coach Mathematics problem with java
Fail to pass Case 4 đđ https://code.sololearn.com/cAw9caqj6Lx5/?ref=app
6 Answers
+ 2
Otman AFOUFOU
No it is giving exception.
Just try in your shared code.
+ 2
"Input Format:
Two inputs: an integer and a space separated string of math expressions."
a mathematical expression does not necessarily have parentheses and positive integers. There can be more than one pair of parentheses in an expression
(I guess)
+ 1
Otman AFOUFOU
Try this input and see what happens
17
(5 + 12) (88 + 22) (6 - 2)
+ 1
It gave me
index 0
+ 1
In the code coach there is not a space character inside the parentheses
Try without space inside just one between the expressions
+ 1
Otman AFOUFOU
Space doesn't matter after or before the operator. Compiler ignore this type of space because it is just for readability purpose.
Still giving me same exception.
Did you pass all test cases?