Flipkart SDE - 2 PS/ DS Round

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-01-20Added By Anonymous
Source: Link
Company: Flipkart
Role: SDE-2
Interview Stage: PS/DS Round

Started with Introduction and Project Discussion.

Question 1:

Maria is the event organizer of the Sarah Birthday party. Maria has planned a multilevel game for the kids. She has planned a level-1 game for kids that is to collect balls in the bucket given a certain time period. Each pair of kids who has collected the maximum number of balls will be eligible for the level-2 game.

Please help Maria to find out all the pairs of kids who have won level-1 games.

You are given a array arr of number of balls collected by kid i, find out the pairs of kids who have collected maximum number of balls



Example :
Input : arr[] = {1, 2, 1, 2, 0, 2, 1}
Output : 3
Explanation: The maximum possible pair
sum where i Output: Order of characters is ‘c’, ‘a’, ‘b’
Comments