C3.ai Interview Questions

C3.ai Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(104)
SQL
(84)
Machine Learning
(75)
Probability
(34)
Product Sense & Metrics
(32)

C3.ai Interview Questions

Practice for the C3.ai interview with these recently asked interview questions.

QuestionTopicDifficulty
Machine Learning
Hard

Implement the k-means clustering algorithm in python from scratch, given the following:

  • A two-dimensional NumPy array data_points that is an arbitrary number of data points (rows) n and an arbitrary number of columns m.
  • Number of k clusters k.
  • The initial centroids value of the data points at each cluster initial_centroids.

Return a list of the cluster of each point in the original list data_points with the same order (as a integer).

Example

before clustering

After clustering the points with two clusters, the points will be clustered as follows.

after clustering

Note: There could be an infinite number of separating lines in this example.

Example


#Input
data_points = [(0,0),(3,4),(4,4),(1,0),(0,1),(4,3)]
k = 2
initial_centroids = [(1,1),(4,5)]


#Output 

k_means_clustering(data_points,k,initial_centroids) -> [0,1,1,0,0,1]

Statistics
Easy
Probability
Medium
Loading pricing options

View all C3 Ai questions

Practice a real interview question

Step-by-step practice

P-value to a Layman

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

Start practicing

C3.ai Salaries by Position

$171K
$314K
Product Manager
Median: $204K
Mean (Average): $218K
Data points: 6
$130K
$194K
Data Scientist
Median: $163K
Mean (Average): $160K
Data points: 24
Marketing Analyst*
$133K
$178K
Marketing Analyst
Median: $155K
Mean (Average): $155K
Data points: 2
$118K
$190K
Software Engineer
Median: $133K
Mean (Average): $145K
Data points: 34
$120K
$168K
ML Engineer
Median: $145K
Mean (Average): $144K
Data points: 39
$112K
$124K
Data Engineer
Median: $115K
Mean (Average): $117K
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 Product Manager role pays the most with a $218,000 base salary while the Data Engineer role on average pays the least with a $117,220 base salary.

Discussion & Interview Experiences

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