HR Reached out to me on LinkedIn and asked me to share the resume.
Question 1
Given a list of words, return the no of replacement required in the string, such that no two consecutive characters are same.
Sample Input: [add, boook, break]
Sample Output: [1, 1, 0]Question 2
A hiker is planning to complete hike to make the world record. Hiker needs to complete his hike in `record` no days and there are multiple trails in the hike. The trails need to be completed in sequential order. Minimize the sum of max trail for each day.
Sample Input 1:
n = 6
trails[10, 5, 9, 3, 8, 15]
record = 2
Sample Output 1:
25
Explaination:
max(10) + max(5, 9, 3, 8, 15) = 25
Sample Input 2:
n = 5
trails[150, 200, 400, 350, 250]
record = 3
Sample Output 2:
750
Explaination:
max(150) + max(200), max(400, 350, 250) = 750Passed all the test cases for both the OA problem. Recieved a call from the HR on Thursday that I'll be having all rounds on Saturday full day - just giving me 48 hours of heads up. I agreed. The recruiter said all the rounds will be elimination round.
Tried reaching out to recruiter through multiple emails and calls - he didn't have basic professionalism and decency to communicate back the result to the candidates.