Problem database last updated: June 20, 2025

AAgoda logo

Agoda Coding Interview Questions

40 problems · 14 Easy, 24 Medium, 2 Hard · Ranked #53 of 458

Difficulty breakdown

14 Easy

35% · avg 23%

24 Medium

60% · avg 59%

2 Hard

5% · avg 18%

Top topics

array
67.5%
string
27.5%
sorting
22.5%1.6x
hash-table
22.5%
two-pointers
20%1.5x
dynamic-programming
20%

Interview profile

Based on 40 reported problems, Agoda interviews are easier than average - only 5% Hard compared to 18% across all companies. The majority (60%) of questions are Medium difficulty, which is typical for companies that want to see solid fundamentals without excessive trick questions.

Compared to the industry average, Agoda puts unusual emphasis on sliding-window (10% of problems, 2.1x the industry average), stack (15% of problems, 1.7x the industry average), monotonic-stack (5% of problems, 1.7x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (67.5%), string (27.5%), sorting (22.5%), hash-table (22.5%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 40 problems

3Sum

Solve

Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0.

MediumVery Likely
arraytwo-pointerssorting

Find the Child Who Has the Ball After K Seconds

Solve

You are given two positive integers n and k. There are n children numbered from 0 to n - 1 standing in a queue in order from left to right.

EasyVery Likely
mathsimulation

Best Time to Buy and Sell Stock

Solve

You are given an array prices where prices[i] is the price of a given stock on the ith day.

EasyVery Likely
arraydynamic-programming

Capacity To Ship Packages Within D Days

Solve

A conveyor belt has packages that must be shipped from one port to another within days days.

MediumVery Likely
arraybinary-search

Longest Substring Without Repeating Characters

Solve

Given a string s, find the length of the longest substring without duplicate characters.

MediumVery Likely
hash-tablestringsliding-window

Unique Paths II

Solve

You are given an m x n integer array grid. There is a robot initially located at the top-left corner (i.e., grid[0][0]). The robot tries to move to the bottom-r...

MediumVery Likely
arraydynamic-programmingmatrix

Minimum Absolute Difference

Solve

Given an array of distinct integers arr, find all pairs of elements with the minimum absolute difference of any two elements.

EasyVery Likely
arraysorting

Daily Temperatures

Solve

Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait aft...

MediumVery Likely
arraystackmonotonic-stack

House Robber

Solve

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from rob...

MediumLikely
arraydynamic-programming

Coin Change

Solve

You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money.

MediumLikely
arraydynamic-programmingbreadth-first-search

Minimum Window Substring

Solve

Given two strings s and t of lengths m and n respectively, return the minimum window substring of s such that every character in t (including duplicates) is inc...

HardLikely
hash-tablestringsliding-window

Integer to Roman

Solve

Seven different symbols represent Roman numerals with the following values:

MediumLikely
hash-tablemathstring

Triangle

Solve

Given a triangle array, return the minimum path sum from top to bottom.

MediumLikely
arraydynamic-programming

Backspace String Compare

Solve

Given two strings s and t, return true if they are equal when both are typed into empty text editors. '' means a backspace character.

EasyLikely
two-pointersstringstack

Brick Wall

Solve

There is a rectangular brick wall in front of you with n rows of bricks. The ith row has some number of bricks each of the same height (i.e., one unit) but they...

MediumLikely
arrayhash-table

Find Pivot Index

Solve

Given an array of integers nums, calculate the pivot index of this array.

EasyLikely
arrayprefix-sum

Eliminate Maximum Number of Monsters

Solve

You are playing a video game where you are defending your city from a group of n monsters. You are given a 0-indexed integer array dist of size n, where dist[i]...

MediumLikely
arraygreedysorting

Squares of a Sorted Array

Solve

Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order.

EasyLikely
arraytwo-pointerssorting

Find the Smallest Divisor Given a Threshold

Solve

Given an array of integers nums and an integer threshold, we will choose a positive integer divisor, divide all the array by it, and sum the division's result....

MediumLikely
arraybinary-search

Reverse Substrings Between Each Pair of Parentheses

Solve

You are given a string s that consists of lower case English letters and brackets.

MediumLikely
stringstack

Permutation in String

Solve

Given two strings s1 and s2, return true if s2 contains a permutation of s1, or false otherwise.

MediumLikely
hash-tabletwo-pointersstring

Lexicographically Smallest String After Substring Operation

Solve

Given a string s consisting of lowercase English letters. Perform the following operation:

MediumLikely
stringgreedy

Move Zeroes

Solve

Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements.

EasyLikely
arraytwo-pointers

Two Sum

Solve

Given an array of integers nums and an integer target, return the indices of the two numbers that add up to target.

EasyLikely
arrayhash-map

Can Place Flowers

Solve

You have a long flowerbed in which some of the plots are planted, and some are not. However, flowers cannot be planted in adjacent plots.

EasyLikely
arraygreedy

Merge Intervals

Solve

Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cove...

MediumLikely
arraysorting

Longest Palindromic Substring

Solve

Given a string s, return the longest palindromic substring in s.

MediumLikely
two-pointersstringdynamic-programming

Merge Sorted Array

Solve

You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and num...

EasyLikely
arraytwo-pointerssorting

Valid Parentheses

Solve

Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

EasyLikely
stringstack

Plus One

Solve

You are given a large integer represented as an integer array digits, where each digits[i] is the ith digit of the integer. The digits are ordered from most sig...

EasyLikely
arraymath

Sort Array by Increasing Frequency

Solve

Given an array of integers nums, sort the array in increasing order based on the frequency of the values. If multiple values have the same frequency, sort them...

EasyLikely
arrayhash-tablesorting

Next Greater Element I

Solve

The next greater element of some element x in an array is the first greater element that is to the right of x in the same array.

EasyLikely
arrayhash-tablestack

Group Anagrams

Solve

Given an array of strings strs, group the anagrams together. You can return the answer in any order.

MediumLikely
arrayhash-tablestring

Decode String

Solve

Given an encoded string, return its decoded string.

MediumLikely
stringstackrecursion

Jump Game II

Solve

You are given a 0-indexed array of integers nums of length n. You are initially positioned at index 0.

MediumLikely
arraydynamic-programminggreedy

Subarray Product Less Than K

Solve

Given an array of integers nums and an integer k, return the number of contiguous subarrays where the product of all the elements in the subarray is strictly le...

MediumLikely
arraybinary-searchsliding-window

Best Time to Buy and Sell Stock II

Solve

You are given an integer array prices where prices[i] is the price of a given stock on the ith day.

MediumLikely
arraydynamic-programminggreedy

Insert Delete GetRandom O(1)

Solve

Implement the RandomizedSet class:

MediumLikely
arrayhash-tablemath

Find Median from Data Stream

Solve

The median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value, and the median is the mean of the two midd...

HardLikely
two-pointersdesignsorting

Kth Smallest Element in a BST

Solve

Given the root of a binary search tree, and an integer k, return the kth smallest value (1-indexed) of all the values of the nodes in the tree.

MediumLikely
treedepth-first-searchbinary-search-tree

How often are these problems asked?

Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent Agoda interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Agoda coding interview

Agoda interviews focus heavily on array, string, sorting problems. If you're short on time, these are the categories to prioritize. The problems on this page are sorted by frequency, so start from the top and work your way down.

Beyond solving problems, practice explaining your approach. Agoda interviewers care about your thought process - how you break down a problem, consider edge cases, and evaluate tradeoffs between solutions. A clean O(n) solution you can explain clearly beats an O(log n) solution you can't articulate.

Looking for more companies? Browse all 458 companies in our directory, or sharpen your fundamentals with our free data structure visualizers and AI-powered DSA tutor.

Frequently Asked Questions

What coding problems does Agoda ask in interviews?add

Agoda has been reported to ask 40 distinct coding problems. The most common topics are array, string, sorting. 14 are Easy difficulty, 24 are Medium, and 2 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Agoda coding interviews?add

Based on 40 reported problems, Agoda interviews are easier than average - only 5% Hard compared to 18% across all companies. 60% of questions are Medium difficulty. Focus on the high-frequency Medium problems first, then work through the Hard ones.

How should I prepare for a Agoda coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, string, sorting. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.

Other companies to explore

Ready to ace your Agoda interview?

Simulate a real Agoda coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.

Simulate a Agoda interview with AIarrow_forward