注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
flatiron Karat OA
第一题是treasure room,地里发过了
第二题是find tresure
we are playing a game where the player needs to follow instructions to find a treasure.
There are multiple rooms, aligned in a straight line, labeled sequentially from 0. Each room contains one instruction, given as a positive integer.
An instructiles
Note: The updated instructions are marked with *.
Example 1
instructions_2_1 = [1, 1, 1, 9]
With $0, the player would follow 3 instructions:
Instructions: [ 1, 1, 1, 9]
Itinerary: [ 1, 1, 1, 9] |