- 1
Last survivour
You are given a string of letters and an array of numbers. The numbers indicate positions of letters that must be removed, in order, starting from the beginning of the array. After each removal the size of the string decreases (there is no empty space). Return the only letter left. Please explain. I don't understand
1 ответ
+ 2
Last survivour
no i am the first survivor!
//
⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬛⬜⬛⬜⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬛⬛⬛⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬜⬜⬜⬜⬜⬜
⬜⬛⬛⬛⬛⬛⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜
⬜⬛⬛⬛⬛⬛⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜
⬜⬛⬛⬛⬛⬛⬜
⬜⬛⬜⬜⬜⬜⬜
⬜⬛⬜⬜⬜⬜⬜
⬜⬛⬛⬛⬜⬜⬜
⬜⬛⬜⬜⬜⬜⬜
⬜⬛⬜⬜⬜⬜⬜
⬜⬛⬛⬛⬛⬛⬜
⬜⬜⬜⬜⬜⬜⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬛⬜⬛⬛⬜
⬜⬛⬜⬛⬜⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬜⬜⬜⬜⬜⬜
⬜⬛⬛⬛⬛⬜⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬛⬛⬛⬜⬜
⬜⬛⬜⬜⬜⬜⬜
⬜⬛⬜⬜⬜⬜⬜
⬜⬛⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜
⬜⬛⬛⬛⬛⬛⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜
IS REQUIRED