author | Christian Urban <urbanc@in.tum.de> |
Thu, 06 Dec 2018 22:51:46 +0000 | |
changeset 237 | db4d2fcd8063 |
parent 236 | e461b5325b5e |
child 243 | 9bb36426c781 |
permissions | -rw-r--r-- |
235 | 1 |
|
236 | 2 |
assert(jumpRight("[******]***", 1, 0) == 8) |
3 |
assert(jumpRight("[**[*]*]***", 1, 0) == 8) |
|
4 |
assert(jumpRight("[**[*]*]***", 1, 0) == 8) |
|
5 |
assert(jumpRight("[**[***]***", 1, 0) == 11) |
|
6 |
assert(jumpRight("[*[][]*]***", 1, 0) == 8) |
|
7 |
assert(jumpLeft("[******]***", 6, 0) == 1) |
|
8 |
assert(jumpLeft("[******]***", 7, 0) == -1) |
|
9 |
assert(jumpLeft("[*[][]*]***", 6, 0) == 1) |