KeepTruckin Interview Questions

KeepTruckin Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(74)
SQL
(59)
Machine Learning
(51)
Probability
(30)
Statistics
(20)

KeepTruckin Interview Questions

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

QuestionTopicDifficulty
Data Structures & Algorithms
Medium

You work at a freight shipping company with a large fleet of trucks. These trucks are based around the nation, with a mix of Mercedes and BMW models represented. The location of each truck that your company owns is stored as (x,y) coordinates in your database.

Given a list of locations that your trucks are stored at, return the top location (x,y) for each model of truck (Mercedes or BMW).

You can assume that there is one location with the most model of a truck, e.g. there will not be any locations that are tied for most BMWs stored.

Example:

Input:

truck_locations = [{
    "model" : "BMW",
    "location" : (1,2)
  },
  {
    "model" : "Mercedes",
    "location" : (2,3)
  },
  {
    "model" : "Mercedes",
    "location" : (2,2)
  },
  {
    "model" : "Mercedes",
    "location" : (2,3)
  },
  {
    "model" : "BMW",
    "location" = (1,2)
  },
  {
    "model" : "BMW",
    "location" : (3,3)
  }
  ]

Output:

def truck_frequent_location(truck_locations) -> {    
    "Mercedes" :  (2,3),   
    "BMW" :  (1,2)   
    }
}

Explanation:

Mercedes repeated two times at location (2,3) and one time at the location (2,2), so (2,3) is our most stored Mercedes location.

BMW repeated two times at location (1,2) and one time at the location (3,3), so (1,2) is our most stored BMW location.

SQL
Easy
SQL
Easy
Loading pricing options

View all Keeptruckin questions

Challenge

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

KeepTruckin Salaries by Position

Product Manager*
$187K
$223K
Product Manager
Median: $205K
Mean (Average): $205K
Data points: 2
Data Scientist*
$160K
Data Scientist
Median: $160K
Mean (Average): $160K
Data points: 1
$69K
$215K
Software Engineer
Median: $143K
Mean (Average): $135K
Data points: 15

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

From the graph we can see that on average the Product Manager role pays the most with a $205,000 base salary while the Software Engineer role on average pays the least with a $134,667 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