agoda logo
Agoda· Staff Engineer

Agoda | Staff Engineer | Bangkok | [Reject]

Location
Bangkok
Posted
11 Apr 2026
498 reads

Summary

I interviewed for a Staff Engineer role at Agoda in Bangkok and was rejected after the coding and system design rounds.

How it went

I interviewed for Agoda. These were the rounds

Round 1 - Coding

Reassign priorities input: [1,4,8,4] output: [1,2,3,2] Solved using treemap and hashset

Molecule Weight Calculator Given 3 atoms with weights (C -> 12, H -> 1, O -> 8), you're given a chemical formula. Need to compute the total weight. e.g CH4 = 16, H(CH4)2 = 33 Solved using Stack based approach.

Round 2 - platform

improve this system

image.png

like adding gateway , rate limiting , horizontal scalling , DB replication , ideomptency , low latency , avoiding contenation using distributed locks

code review based on solid principles , desing patterns etc

got reject email after 2 days

i thought i did well on round 2 in terms of desing but did not specify few obvious improvement on apis

like POST /promo/updatestaus was given , instead of put

create api was missing

TIP : make sure go thro agoda prepation document provided , communicate your thought process proprely .

Questions asked (2)

  1. 01

    Reassign Priorities

    Data Structures & Algorithms

    Given an input array of integers, produce an output array where each element is replaced by its rank (starting from 1) in the sorted order of the unique values.

    Example: Input: [1,4,8,4] Output: [1,2,3,2]

    The candidate solved this using a TreeMap and a HashSet.

  2. 02

    Molecule Weight Calculator

    Data Structures & Algorithms

    Given atomic weights for three atoms (C = 12, H = 1, O = 8) and a chemical formula string, compute the total molecular weight.

    Examples:

    • CH4 = 16
    • H(CH4)2 = 33

    The candidate used a stack‑based approach to handle nested parentheses and multipliers.

How they prepared

Make sure to go through the Agoda preparation document and clearly communicate your thought process during the interview.

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Agoda recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

Be the first to share your thoughts and start the discussion!