Cruise Interview Questions

Cruise Interview Guides

Click or hover over a slice to explore questions for that topic.
Machine Learning
(14)
SQL
(8)
Probability
(6)
Statistics
(6)
Data Structures & Algorithms
(6)

Cruise Interview Questions

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

QuestionTopicDifficulty
Data Structures & Algorithms
Hard

Let’s say you are given a maze of cells denoted by (x, y), where ‘x’ and ‘y’ represent the distances from the topmost starting cell st = (x0, y0). Walls within the maze are denoted by 1, while free cells are represented by 0.

Return a boolean stating if there is a path from the starting cell st to the target cell tg, which is marked by 2 in the maze.

Hint: You don’t have to find the shortest path through it’s advised to think about it.

Example 1:

There is a possible path from start st point to target tg as

Input:

maze_input =[
            [0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,2,0,0,0],
            [0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,1,1,0,0,1,1,1,1,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
            ] 

st_input = (3,4)

Output:

search_maze(st_input,maze_input) -> True

Example 2:

In this example, there is no path from start cell st to target cell tg, so we return an empty list.

Input:

maze_input =[
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
            [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]            
            ] 

st_input = (9,6)

Output:

search_maze(st_input,maze_input) -> False

SQL
Medium
SQL
Medium
Loading pricing options

View all Cruise Automation, Inc. questions

Challenge

Check your skills...
How prepared are you for working at Cruise Automation, Inc.?

Cruise Salaries by Position

$150K
$283K
ML Engineer
Median: $220K
Mean (Average): $211K
Data points: 28
$143K
$235K
Data Engineer
Median: $215K
Mean (Average): $200K
Data points: 4
$140K
$281K
Software Engineer
Median: $193K
Mean (Average): $198K
Data points: 119
$162K
$226K
Product Manager
Median: $188K
Mean (Average): $191K
Data points: 4
$140K
$208K
Data Scientist
Median: $169K
Mean (Average): $171K
Data points: 6

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

From the graph we can see that on average the ML Engineer role pays the most with a $211,366 base salary while the Data Scientist role on average pays the least with a $171,233 base salary.

Discussion & Interview Experiences

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