Juspay Elimination Round Interview experience
Summary
I recently completed the Juspay Elimination Round where I successfully solved two programming challenges, which led to my selection for Hackathon Part B.
Full Experience
The elimination round at Juspay was designed to assess candidates and rule out any unfair practices from the previous Hackathon. During this round, I was required to share my screen and keep my camera on throughout the problem-solving process. I tackled two distinct coding problems. For the second question, I initially faced an edge case, but after presenting my greedy approach, the interviewer seemed satisfied, and I was advanced to the next stage, Hackathon Part B.
Interview Questions (2)
Given q queries where each query consists of a name and a score, we need to find the person with the highest cumulative score at the end of all queries. In case of a tie, the person who reached the highest score first should be the winner.
Test Cases:
Input 1:
6
A 3
B 2
A 5
B 6
A 1
B 1
Output 1:
A
Input 2:
3
mike 3
andrew 5
mike 2
Output 2:
andrew
You are given an array of jobs where jobs[i] represents the time required to complete a job. Distribute these jobs among k workers such that the maximum time taken by any worker is minimized.
Test Cases:
Input 1:
3
3 2 3
3
Output 1:
3
Input 2:
5
1 2 4 7 8
2
Output 2:
11