71 questions · from 25 interviews
Agoda interview questions
Every question candidates reported from their Agoda interviews, most frequently asked first. Each links to the write-up it came from, so you can see the round and how it went.
Agoda coding and DSA questions
- 01
Degree of an Array
LeetCode problem "Degree of an Array". The task is to find the degree of the given array (the maximum frequency of any element) and then return the length of the smallest contiguous subarray that has the same degree. Link:…
From Agoda Staff Backend Interview Experience | 1-Day Fast Track
- 02
Disk Space Analyzer
Given an array space[] and a window size x: 1. Find the minimum available space in every contiguous window of size x. 2. Return the maximum among those minimum values. Example: x = 2 space = [8, 2, 4, 6] window minimums = [2, 2, 4] answer = 4 The problem…
From Agoda Staff Backend Interview Experience | 1-Day Fast Track
- 03
Find Pivot Element in Array
Find pivot element from a given array, all elements towards left are smaller and all elements towards right are greater than pivot.
- 04
Calculate Molecular Weight from Chemical Formula
Given a chemical formula like CH4, return its weight, each element has a separate weight like C has 12, H has 1, O has 2.
- 05
Minimum Daily Reading Limit
You are given an array of integers where each element represents the number of pages in a sequence of chapters. You need to finish reading all the chapters in exactly D days. You must read the chapters in the exact order they are given. Each day, you can…
Medium · From Agoda | Staff Software Engineer | Bangkok | MAY 2026
- 06
Rank Transform of an Array
Given an integer array arr, replace each element with its rank among the unique values in the array. The smallest element gets rank 1, the next smallest gets rank 2, and so on.
Easy · From Agoda | Staff Software Engineer
- 07
Climbing Stairs with 1-3 Step Jumps
Given an integer n, count the number of distinct ways to reach the top of a staircase where you can climb 1, 2, or 3 steps at a time.
Easy · From Agoda | Staff Software Engineer
- 08
Group Anagrams
Given an array of strings, group the anagrams together. Return a list of groups where each group contains strings that are anagrams of each other.
Medium · From Agoda Interview Experience (Software Engineering Intern)
- 09
3Sum Problem
Given an integer array nums, find all unique triplets [a, b, c] such that a + b + c = 0.
Medium · From Agoda | SDE Intern (6 Months) | Gurugram | May 2026 | Offer
- 10
Find All Pairs with Minimum Absolute Difference
Given an array, find all pairs of elements whose difference is equal to the minimum absolute difference in the array. Example input = [1,3,10,7,5] output = [[1,3], [5,7]] The output contains all pairs whose absolute difference equals the smallest possible…
- 11
Next Smaller Element Distance to the Right
Given an array, for each element find the distance (index gap) to the next smaller element on its right. Hint: This problem can be solved using a monotonic stack.
- 12
Simple Chemical Formula Evaluation
Write a function calculateWeight(String formula) that computes the molecular weight of a chemical formula. Supported elements: C = 12, H = 1, O = 8. The formula contains no parentheses and only single‑digit multipliers. Example: Input: CH4 Output: 16 (C = 12,…
- 13
Complex Chemical Formula Evaluation
Extend the previous problem to support nested parentheses and multipliers that apply to the entire group. Example 1: Input H(CH4)2 Output 33. Example 2: Input ((CH4)) Output 16. Required concepts include stack‑based parsing and recursive/group evaluation.
- 14
Feasibility of Printing Within Given Days
Given an array representing pages in book chapters, a fixed daily printing limit, and a number of days D, determine whether it is possible to print all chapters within D days. Chapters must remain in order and cannot be split across days. Example: Pages =…
- 15
Minimum Daily Printing Limit
Given an array of pages per chapter and a number of days D, find the minimum daily printing limit required to finish printing within D days while keeping chapter order and not splitting chapters. Example: Pages = [100, 200, 300, 400] D = 3 Output: 500
- 16
Reassign Priorities
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…
- 17
Molecule Weight Calculator
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.
- 18
Nearest Smaller Element using Monotonic Stack
Given an array of integers, for each element find the nearest element to its left that is smaller than it. The solution should use a monotonic stack to achieve an O(N) time complexity.
Medium · From Agoda | Staff Engineer | Bangkok | [Selected]
- 19
Rank Elements by Priority
Given an array of priority values, assign a rank to each element such that higher numbers receive higher ranks. For example, the largest priority gets rank 1, the second largest gets rank 2, and so on.
- 20
Variation of Jump Game (DP)
A variation of the classic Jump Game problem, solved using Dynamic Programming. I had to explain the approach and write a working code with time and space complexity.
- 21
Variant of Largest Greater Number on Right
A variant of the problem to find the largest greater number on the right side in an array.
- 22
Largest Substring with Distinct Characters
Find the largest substring with distinct characters.
- 23
Weighted Number of Atoms (Variation of LC 726)
A variation of [726. Number of Atoms](https://leetcode.com/problems/number-of-atoms) where you have to calculate the weight of the molecule given a fixed mapping of the weight of each atom.
- 24
Minimize Operations to Make Array Elements Equal
Given an array of integers, find the minimum number of operations required to make all array elements equal. In one operation, you can either increment or decrement an element. Example: Input: [1, 2, 3] Output: 2 (To make all elements 2: 1 - 2 (1 operation),…
Medium · From Agoda | Staff SE | OA
- 25
Eliminate Maximum Airplanes (Variation)
This was a variation of the LeetCode problem 'Eliminate Maximum Number of Monsters'. The problem scenario was rephrased to involve airplanes instead of monsters. The goal is likely to determine if it's possible to eliminate all incoming targets (airplanes)…
14 more in the Agoda write-ups.
Agoda system design questions
- 01
Flight Aggregator System Design
Design a flight aggregator system that pulls data from multiple providers, allows users to search for flights by origin and destination, and supports booking tickets. Consider scalability bottlenecks, incomplete API, data fetching and freshness, caching of…
- 02
Payment Gateway System Design for 10M DAU
Design a payment gateway system to support Agoda users at a scale of 10 million daily active users. Include handling of transactions, integration with external providers such as Stripe, reconciliation system, and overall architecture to ensure reliability and…
- 03
Design a Hotel Search Page
Design a hotel search page from scratch that is scalable, maintainable, and observable. The page must support real-time chat integration, handle up to a million users, allow multiple teams to deploy features independently, and include UI elements such as date…
- 04
Design a Chat Application
Design a chat application that supports one-to-one messaging, one-to-many messaging, and read receipts similar to WhatsApp. Include functional and non‑functional requirements, database schema, and discuss scalability considerations.
From Agoda Interview Experience (Software Engineering Intern)
- 05
Design a Database Schema for a PVR Cinema
Design a relational database schema to model a PVR Cinema, including entities such as movies, screens, showtimes, bookings, and users.
From Agoda | SDE Intern (6 Months) | Gurugram | May 2026 | Offer
- 06
Booking Platform API Design
Design a booking platform API that external suppliers can use to fetch booking information. Requirements: support 10‑20 suppliers; suppliers may filter bookings by last 5 minutes, last 2 hours, last 1 day, next 7 days check‑ins, next 30 days check‑ins; peak…
- 07
Design a Flight Booking System
Design an end-to-end flight booking system. Discuss REST APIs for search and booking, scalability, load balancing, observability/monitoring, handling network failures, CAP theorem tradeoffs, testing types, booking consistency, concurrent seat booking, failure…
- 08
System Design: Image Generation with Expiring Links
Design a system where images are generated using a link that expires in 10 seconds. Analyze the design and propose as many enhancements as possible.
- 09
Supermarket SKU Tracking Data Engineering System Design
Design a Data Engineering system for a supermarket to track SKUs of items in stock across hundreds of stores. There are two streams: - stock, items coming in at ~1M QPS (itemid, numberofitems either +/- indicating buy/sell, quantitybefore, timestamp) from…
- 10
Design a REST API for a Book Management System
Design a simple REST API to manage a list of books. The API should support basic CRUD operations (Create, Read, Update, Delete) for books. Each book should have attributes such as an ID, title, author, and ISBN. Additionally, the design should incorporate…
- 11
API Design: Plain HTTP Client Basics
An API design question focused on demonstrating strong understanding of plain HTTP client basics, emphasizing solutions without relying on high-level frameworks like Spring or other abstract client libraries.
- 12
System Improvement and Code Review
I was presented with a badly designed system and asked to propose improvements. The round also involved a code review component and discussion about database and technology choices, with a thorough grilling on 'how, what, why, why not' behind my decisions.
- 13
High-Level System Design
A classic high-level system design exercise was given, requiring me to outline the architecture of a large-scale system.
- 14
Improve Existing Booking System Design
Given an existing booking or data fetching system design, the task was to identify areas for improvement. This involved suggesting architectural enhancements such as: Adding load balancers (LB) Implementing rate limiters Integrating message queues The…
From Agoda Bangkok interview experience, Staff Software Engineer July-Aug 2025
- 15
REST API Design and Secure Connectivity
Discuss potential improvements for REST APIs, explore different types of authentication mechanisms, and explain strategies for managing robust and secure connectivity sessions.
From Agoda Bangkok interview experience, Staff Software Engineer July-Aug 2025
- 16
Design a Concert Booking System (Flash Sale Variant)
Design a system for concert booking, conceptually similar to a flash sale system. The discussion focused on demonstrating overall design skills, including: Analyzing trade-offs Identifying potential bottlenecks Planning for scalability I was advised to start…
Hard · From Agoda Bangkok interview experience, Staff Software Engineer July-Aug 2025
- 17
Metrics and Telemetry Discussion
Detailed discussions focused on system metrics and telemetry throughout the architectural design process.
From Agoda Bangkok interview experience, Staff Software Engineer July-Aug 2025
- 18
Hotel Inventory System Design
Design a system where you are required to find the inventory of the hotels. You will be querying the Agoda's internal data as well as call the external services like Makemytrip, Booking.com to get the inventory data as well.
- 19
Design Booking.com
Design a platform similar to Booking.com, with a particular focus on the search and booking services.
- 20
Design a Location Sharing App
Design a location sharing application. The primary focus should be on the database design to manage location sharing among users, especially considering constraints where, for instance, user1 could restrict user2's access based on time and location.
Hard · From Agoda | SSE | Interview Experience | Bangkok | Offer
- 21
Design WhatsApp
Design the WhatsApp messaging application.
Hard · From Agoda | SSE | Interview Experience | Bangkok | Offer
- 22
Design an Elevator System (LLD)
Design an elevator system for a building. This was specifically an LLD (Low-Level Design) question.
Medium · From Agoda | SSE | Interview Experience | Bangkok | Offer
- 23
High-Level Design for Event Streaming Platform
I was tasked with designing a High-Level Design (HLD) for an event streaming platform. The core requirement was to ensure decoupling of services and independent scaling.
- 24
Low-Level Design for Hotel Booking System
I was given a scenario to perform a Low-Level Design (LLD) for a Hotel Booking System and was expected to explain the underlying code. The focus was on the structure and interaction of components.
- 25
Design a Rate Limiter
I was given a problem to design a rate limiter. The discussion was comprehensive, covering various aspects like design tradeoffs, essential system components, and suitable database types for implementation.
Agoda behavioural and HR questions
- 01
Why Agoda?
I was asked about my motivation for wanting to join Agoda.
- 02
Relocation Motivation (Bangalore to Bangkok)
I was asked to explain my reasons and motivation for relocating from Bangalore to Bangkok.
- 03
Behavioral Questions (Mentorship, Mistakes, Conflict)
A series of behavioral questions covering topics such as mentorship, learning from past mistakes, experimenting with new ideas, navigating trade-offs, and handling workplace conflicts.
From Agoda Bangkok interview experience, Staff Software Engineer July-Aug 2025
Agoda other questions
- 01
Code Review for Booking API
Review a basic implementation of a booking API and provide corrections or suggestions for improvement.
From Agoda Bangkok interview experience, Staff Software Engineer July-Aug 2025
- 02
Build a Flashcard Application
Design and implement a flashcard application.
- 03
Implementation of Design Patterns (Strategy, Singleton, Factory)
After discussing the design patterns I'd used in my projects, the interviewer asked me to implement specific design patterns: Strategy, Singleton, and Factory.
- 04
Find Customer with Most Orders (SQL)
Write an SQL query to find the customernumber for the customer who has placed the largest number of orders. Orders table: +---------------+-----------------+ | ordernumber | customernumber | +---------------+-----------------+ | 1 | 1 | | 2 | 2 | | 3 | 3 | |…
Agoda interview questions FAQ
What questions are asked in Agoda interviews?
Candidates reported 71 distinct questions across 25 Agoda interviews. 39 coding and DSA questions, 25 system design questions, 3 behavioural and HR questions, 4 other questions.
How difficult are Agoda interview questions?
Of the questions candidates rated, 18% were easy, 68% medium and 14% hard.