Array Operations
Given Some string s, and a vector of strings enlisting instructions..
Ex.
The first instruction tells us to take the substring at (0,0), and increment all the characters in that substring to the left by 1. (so its really decrementing it)
The second instruction tells us to take the subtring at (2,2), and
The third instruction tells us to take the substring at (0,2), and increment all the characters to the right by 1.
You get the idea. Notice that the substring only changes, and the remainder of the string is unaffected. Also, each instructions builts of the changes from the previous instruction.
Last updated
Was this helpful?