7/24/2021 11:46:44 AM
Just an idea.
Try to read the string backwards.
If next char value was less than current char value, subtract
If next char value was greater than current char value, add
Ok now it works fine
Good job! 👍
I go backwad and it is supposed true. You should go backward because the second element is bigger than first.
Send us a message