Gopuff Interview Questions

Gopuff Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(93)
SQL
(80)
Machine Learning
(66)
Product Sense & Metrics
(38)
Probability
(32)

Gopuff Interview Questions

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

QuestionTopicDifficulty
Machine Learning
Hard

Build a kk Nearest Neighbors classification model from scratch with the following conditions:

  • Use Euclidian distance (aka, the “2 norm”) as your closeness metric
  • Your function should be able to handle data frames of arbitrary many rows and columns
  • If there is a tie in the class of the kk nearest neighbors, rerun the search using k−1k-1 neighbors instead
  • You may use pandas and numpy but NOT scikit-learn

Example:

Input:

k = 5
new_point = [0.5,-2,8]
print(data)
...
        Var1      Var2      Var3  Target
0  -3.279536  3.362223  2.847892       2
1  -0.791565  1.742475  2.151587       2
2  -0.785992 -0.938681 -0.459770       0
3  -1.068190  1.461051  0.127130       3
4  -0.367568 -0.870240 -0.225734       0
..       ...       ...       ...     ...
95 -1.327175  1.971085 -0.690689       2
96 -3.203714  1.847649  0.778901       2
97 -0.587640  0.647458  2.094385       2
98  0.363644 -0.509795  2.514191       1
99 -0.673498  2.955285  2.102122       4

[100 rows x 4 columns]

Output:

def kNN(k, new_point, data) -> 2
Machine Learning
Medium
SQL
Easy
Loading pricing options

View all Gopuff questions

Practice a real interview question

Step-by-step practice

Bagging vs Boosting

Work through it one step at a time, with feedback on every wrong turn, then write your full answer.

Start practicing

Gopuff Salaries by Position

Data Engineer*
$185K
Data Engineer
Median: $185K
Mean (Average): $185K
Data points: 1
Product Manager*
$121K
$224K
Product Manager
Median: $173K
Mean (Average): $173K
Data points: 2
$110K
$225K
Software Engineer
Median: $155K
Mean (Average): $162K
Data points: 21
Data Scientist*
$127K
$158K
Data Scientist
Median: $143K
Mean (Average): $143K
Data points: 2
Business Analyst*
$85K
$175K
Business Analyst
Median: $130K
Mean (Average): $130K
Data points: 2
Product Analyst*
$120K
Product Analyst
Median: $120K
Mean (Average): $120K
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 Data Engineer role pays the most with a $185,000 base salary while the Product Analyst role on average pays the least with a $120,000 base salary.

Discussion & Interview Experiences

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