<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KVGHS6G" height="0" width="0" style="display:none;visibility:hidden"></iframe>

Shopify计算机科学面试真题

职位分类
全部
数据相关
计算机科学
人工智能
产品经理
BQ
面试题
全部(1)
OOD(1)
Algorithm(0)
System Design(0)
高频题(0)
Math(0)
全部(1)
OOD(1)
Algorithm(0)
System Design(0)
高频题(0)
Math(0)
1.Create a command line application to move a rover around a 2D plane
1. Create a command line application to move a rover around a 2D plane
Create a command line app that prompts a command and moves a rover around a 2D plane. The robot should point in a direction, turn to face different directions, and move in the direction it is facing. Consider the following follow-up questions: 1. How would you optimize the application? 2. If there are multiple robots, how would you implement the functionality to control a specific robot by its ID to turn or move? 3. What changes would you make to the code before sending it for a code review by your team?