Week 15 - Task 3
Where to go?
LRRLRRLLRLRLRRRLLRRLLRLRLRRRLRLRRRLLRLRRRRLLRRLRLRRLLRLRLRRRLLRLRLRRRLRRLRRRLRLLLRRLRRLRLLRRLRRRLLRLRLRLRLRRLRLRRLLRLRRLRLRLLRRRLRRLLRLRRLRLRLRRRLRLRRRLRRRLRLRLRLLRRLLRRLRLRLRRLRRRRLRLRLRRLLLRLRRLRLRLRLRLRLRLRLRLRRRLRLRLRLRLRRLLRLRLRLLRRRLRRRRLRLRLRRLRRRRRLRLRLRRLRRLLRLRRRLRLRLRRLLRRLRLRRLRRRLRLRLRLRLRLRLLRRRRLRLLRRLRLLRRLRLRLLRRLRLRRLLRRLRRLRRLRLRLRRRLRLRRLRLRLRL
SANTA is having trouble finding the path. The INPUT DATA has instructions on where to go.
- He starts at position 0
- If "L" he goes left and position is decreased by 1
- If "R" he goes left and position is increased by 1
Where is SANTA ending up? The answer is a positive or negative integer.