注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
和地里其他人的coding题不一样。. From 1point 3acres bbs
选择题很多是相同的,但是coding题不是read files那个。是一个关于Mars Hover的题目。. 1point 3acres
网上搜了一个description。OA题目没有这个这么难。求加米看面经🙏!
Mars Rover problem:A squad of robotic rovers are to be landed by NASA on a plateau on Mars. This plateau, which is curiously rectangular, must be navigated by the rovers so that their on-board cameras can get a complete view of the surrounding terrain to send back to Earth. A rover’s position and location is represented by a combination of x and y co-ordinates and a letter representing one of the four cardinal compass points. The plateau is divided up into a grid to simplify navigation. An example position might be 0, 0, N, which means the rover is in the bottom left corner and facing North.style="color:rgb(30, 34, 34)"> Test Input: 5 5.1point3acres
1 2 N ..
LMLMLMLMM
3 3 E
MMRMMRMRRM Expected Output: 1 3 N
5 1 E
|