Company: Agoda
Role: SDE Intern (Summer 2025)
Stipend: ₹1 Lakh/month
Hey everyone,
I recently completed Agoda's Online Assessment for the Software Development Engineer Intern role (Summer 2025). The stipend for this role is ₹1 Lakh per month. The assessment consisted of 3 coding questions (1 Easy, 2 Medium). I wanted to share the questions here and would love to hear your approaches.
Q1. Team Formation (Medium)
Given n developers, each developer i has:
lowerSkill[i]: max number of team members with skill less than theirs
higherSkill[i]: max number of team members with skill greater than theirs
Form the largest team such that every developer is okay with their relative skill positions.
Example:
lowerSkill = [1, 3, 2, 2, 2]
higherSkill = [2, 2, 1, 1, 3]
Output: 3
Q2. Two-Core Process Assignment (Medium)
You are given an array time representing the time each process takes. Distribute processes across 2 cores such that the maximum total time on any core is minimized. Return the total time for both cores as an array: [sum_core1, sum_core2].
Example:
time = [10, 21, 10, 21, 10]
Output: [41, 31]
What approach would work best for this problem?
Q3. Unique Digits in Range (Easy)
Given a range [a, b], count how many numbers in that range have all unique digits.
Example:
a = 5, b = 11
Output: 6
Love to hear your thoughts!