- Now, given the same instructions, find the position of the first character that causes him to enter the basement (floor -1). The first character in the instructions has position 1, the second character has position 2, and so on.
- For example:
- ) causes him to enter the basement at character position 1.
- ()()) causes him to enter the basement at character position 5.
- What is the position of the character that causes Santa to first enter the basement?
5
From iKu, 1 Year ago, written in Plain Text, viewed 2 times.
This paste will self destruct in 1 Second.
URL https://paste.paivola.fi/view/fd9be791
Embed
Download Paste or View Raw
— Expand Paste to full width of browser