Determine the Starting Integer
Given an array of operations ++x, x++, --x. x-- and an integer target, return an initial integer, so that the final value is the target value.
Example 1
Input:
["x++", "--x", "--x"], 12
Output:
13
main.cpp
C++
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.