Problem database last updated: June 20, 2025

PPaytm logo

Paytm Coding Interview Questions

29 problems · 6 Easy, 22 Medium, 1 Hard · Ranked #67 of 458

Difficulty breakdown

6 Easy

21% · avg 23%

22 Medium

76% · avg 59%

1 Hard

3% · avg 18%

Top topics

array
62.1%
two-pointers
34.5%2.5x
string
27.6%
stack
17.2%2x
dynamic-programming
17.2%
greedy
13.8%1.6x

Interview profile

Based on 29 reported problems, Paytm interviews are easier than average - only 3% Hard compared to 18% across all companies. The majority (76%) 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, Paytm puts unusual emphasis on two-pointers (34.5% of problems, 2.5x the industry average), monotonic-stack (6.9% of problems, 2.4x the industry average), prefix-sum (6.9% of problems, 2.1x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (62.1%), two-pointers (34.5%), string (27.6%), stack (17.2%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 29 problems

Remove All Adjacent Duplicates In String

Solve

You are given a string s consisting of lowercase English letters. A duplicate removal consists of choosing two adjacent and equal letters and removing them.

EasyVery Likely
stringstack

Longest Nice Subarray

Solve

You are given an array nums consisting of positive integers.

MediumVery Likely
arraybit-manipulationsliding-window

Find Indices With Index and Value Difference II

Solve

You are given a 0-indexed integer array nums having length n, an integer indexDifference, and an integer valueDifference.

MediumVery Likely
arraytwo-pointers

Find Indices With Index and Value Difference I

Solve

You are given a 0-indexed integer array nums having length n, an integer indexDifference, and an integer valueDifference.

EasyVery Likely
arraytwo-pointers

Minimize Maximum of Array

Solve

You are given a 0-indexed array nums comprising of n non-negative integers.

MediumVery Likely
arraybinary-searchdynamic-programming

Number of Unequal Triplets in Array

Solve

You are given a 0-indexed array of positive integers nums. Find the number of triplets (i, j, k) that meet the following conditions:

EasyVery Likely
arrayhash-tablesorting

Min Stack

Solve

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.

MediumVery Likely
stackdesign

Linked List Cycle II

Solve

Given the head of a linked list, return the node where the cycle begins. If there is no cycle, return null.

MediumVery Likely
hash-tablelinked-listtwo-pointers

Container With Most Water

Solve

You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]).

MediumLikely
arraytwo-pointersgreedy

Valid Parentheses

Solve

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

EasyLikely
stringstack

Longest Substring Without Repeating Characters

Solve

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

MediumLikely
hash-tablestringsliding-window

Longest Palindromic Substring

Solve

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

MediumLikely
two-pointersstringdynamic-programming

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

Next Permutation

Solve

A permutation of an array of integers is an arrangement of its members into a sequence or linear order.

MediumLikely
arraytwo-pointers

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.

MediumLikely
arraytwo-pointerssorting

Reverse Words in a String

Solve

Given an input string s, reverse the order of the words.

MediumLikely
two-pointersstring

Execute Asynchronous Functions in Parallel

Solve

Given an array of asynchronous functions functions, return a new promise promise. Each function in the array accepts no arguments and returns a promise. All the...

MediumLikely

Largest Number

Solve

Given a list of non-negative integers nums, arrange them such that they form the largest number and return it.

MediumLikely
arraystringgreedy

Product of Array Except Self

Solve

Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i].

MediumLikely
arrayprefix-sum

Reverse Linked List

Solve

Given the head of a singly linked list, reverse the list, and return the reversed list.

EasyLikely
linked-listrecursion

Second Highest Salary

Solve

Table: Employee

MediumLikely
database

Trapping Rain Water

Solve

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.

HardLikely
arraytwo-pointersdynamic-programming

Search in Rotated Sorted Array

Solve

There is an integer array nums sorted in ascending order (with distinct values).

MediumLikely
arraybinary-search

Word Search

Solve

Given an m x n grid of characters board and a string word, return true if word exists in the grid.

MediumLikely
arraystringbacktracking

String Compression

Solve

Given an array of characters chars, compress it using the following algorithm:

MediumLikely
two-pointersstring

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

Longest Consecutive Sequence

Solve

Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence.

MediumLikely
arrayhash-tableunion-find

Sum of Subarray Minimums

Solve

Given an array of integers arr, find the sum of min(b), where b ranges over every (contiguous) subarray of arr. Since the answer may be large, return the answer...

MediumLikely
arraydynamic-programmingstack

Find Minimum in Rotated Sorted Array

Solve

Suppose an array of length n sorted in ascending order is rotated between 1 and n times. For example, the array nums = [0,1,2,4,5,6,7] might become:

MediumLikely
arraybinary-search

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 Paytm interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Paytm coding interview

Paytm interviews focus heavily on array, two-pointers, string 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. Paytm 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 Paytm ask in interviews?add

Paytm has been reported to ask 29 distinct coding problems. The most common topics are array, two-pointers, string. 6 are Easy difficulty, 22 are Medium, and 1 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Paytm coding interviews?add

Based on 29 reported problems, Paytm interviews are easier than average - only 3% Hard compared to 18% across all companies. 76% 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 Paytm coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, two-pointers, string. 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 Paytm interview?

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

Simulate a Paytm interview with AIarrow_forward