Panda Guru LogoPanda
Guru

Salesforce Interview Experience | MTS | 4.5 yrs

Online Assessment

Questions:

Question 1

A number of bids are received for a project. Determine the number of distinct pairs of project costs where their absolute difference is some target value. Two pairs are distinct if they differ in at least one value.

Question 2

You have n chocolates with weights given in an array weights[n], where weights[i] represents the weight of the ith chocolate. Each day, you can pick one chocolate, consume half of its weight (calculated as floor(weight[i]/2)), and keep the remaining portion. Calculate the minimum possible total weight of the chocolate after d days. Note that you can eat from the same chocolate multiple times.


Round 1

Questions:

Question 1

Maximum path sum in a tree.

Question 2

Print the path of the maximum path sum.

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.