Cred Interview Questions

Cred Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(49)
Machine Learning
(42)
SQL
(39)
Product Sense & Metrics
(19)
A/B Testing
(19)

Cred Interview Questions

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

QuestionTopicDifficulty
SQL
Hard

Let’s say we have two tables, transactions and products. Hypothetically the transactions table consists of over a billion rows of purchases bought by users.

We are trying to find paired products that are often purchased together by the same user, such as wine and bottle openers, chips and beer, etc..

Write a query to find the top five paired products and their names.

Notes: For the purposes of satisfying the test case, p2 should be the item that comes first in the alphabet. The qty column represents paired products count

Example:

Input:

transactions table

Column Type
id INTEGER
user_id INTEGER
created_at DATETIME
product_id INTEGER
quantity INTEGER

products table

Column Type
id INTEGER
name VARCHAR
price FLOAT

Output:

Column Type
p1 VARCHAR
p2 VARCHAR
qty INTEGER
Behavioral
Medium
Data Pipelines
Hard
Loading pricing options

View all Cred questions

Challenge

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

Cred Salaries by Position

$51K
$59K
Software Engineer
Median: $58K
Mean (Average): $56K
Data points: 3

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 $55,800 base salary while the Software Engineer role on average pays the least with a $55,800 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