Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Hello
I have solved Dice Probability Calculator and naturally made a few tweaks to adapt the algorithm to this puzzle. My solution passes all tests and validators, except validator 4. Is it possible to get at least a hint as to what is expected?
Hint for Validator 4: Check whether your code handles the unary operator correctly in whatever position it may appear in an expression.
Oh, that’s actually a case I considered at the beginning and somehow completely forgot to take into account in my final version. It passes now. Thank you!
I have all tests passed when running from ide but when I submit it fails test 4. What can be the issue?
Have you checked whether your code handles the unary operator correctly in whatever position it may appear in an expression?
When I output the entry string it has only 42 value, no unary operator
Please note that most validators (the cases not visible to you) in a CodinGame puzzle are different from tests. That’s why your code has to be general enough to handle those as well. In Validator 4, the input contains a unary operator.
Thank you!
I thought these are the same. Now I have 100%