Irobot Interview Questions

Irobot Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(33)
Machine Learning
(20)
SQL
(13)
Behavioral
(5)
Product Sense & Metrics
(4)

Irobot Interview Questions

Practice for the Irobot interview with these recently asked interview questions.

QuestionTopicDifficulty
Data Structures & Algorithms
Hard

A robot has been designed to navigate a two-dimensional 4x4 matrix by only moving forward or turning right when blocked by a wall of the matrix. Its starting position is in the top left corner of the matrix, denoted by (0,0), and the robot’s final destination is the bottom right corner.

Determine the full path of the robot before it hits the final destination or starts repeating the path.

The ‘walls’ of the matrix are either one of the four borders of the map or any block found within.

A ‘Block’ is donated by having 1 in the cell corresponding to it where an empty cell is having ‘0’.

Example 1:

#Input
robot_map = [
  [0,0,0,0],[0,0,1,0],[0,1,0,0],[0,0,0,0]]

#Output
robot_path(robot_map) -> [(0,0),(0,1),(0,2),(0,3),(1,3),(2,3),(3,3)]

As seen in these diagrams, the robot’s path starts with this sequence of steps:

  1. Goes forward three times and hits the wall. Turns right.
  2. Goes forward three times (orientation has changed), 3. Reaches the final destination, and stops.

image

Example 2:

#Input
robot_map = [
  [0,0,1,0],[0,0,0,0],[0,1,0,0],[0,0,0,0]]

#Output
robot_path(robot_map) -> [(0,0),(0,1),(1,1),(1,0)]

Here, the robot moves forward one space, but hits the wall. After turning right, another wall is hit, starting a loop.

image

SQL
Easy
SQL
Medium
Loading pricing options

View all Irobot questions

Challenge

Check your skills...
How prepared are you for working at Irobot?

Irobot Salaries by Position

$92K
$197K
Software Engineer
Median: $125K
Mean (Average): $131K
Data points: 31
$104K
$123K
ML Engineer
Median: $113K
Mean (Average): $114K
Data points: 11
Data Analyst*
$83K
Data Analyst
Median: $83K
Mean (Average): $83K
Data points: 1

Most data science positions fall under different position titles depending on the actual role.

From the graph we can see that on average the Software Engineer role pays the most with a $131,286 base salary while the Data Analyst role on average pays the least with a $82,618 base salary.

Discussion & Interview Experiences

?
There are no comments yet. Start the conversation by leaving a comment.

Discussion & Interview Experiences

There are no comments yet. Start the conversation by leaving a comment.

Jump to Discussion