i
Paytm
Filter interviews by
I was interviewed in Aug 2021.
Round duration - 70 minutes
Round difficulty - Medium
There were 3 problems 1 was easy and 2 were of medium types.
Given a binary tree, the task is to compute the modulus of the difference between the sum of nodes at odd levels and the sum of nodes at even levels.
The first line...
oddSum: denotes sum of nodes at odd levels, initially 0.
evenSum: denotes sum of nodes at ecen levels, initially 0.
level: the level of the current node, initially 1.
void oddEvenLevelHelper(current, oddSum, evenSum, level)
You are given a grid containing oranges where each cell of the grid can contain one of the three integer values:
The idea is very simple and naive. We will process the rotten oranges second by second. Each second, we rot all the fresh oranges that are adjacent to the already rotten oranges. The time by which there are no rotten oranges left to process will be our minimum time.
In the first traversal of the grid, we will process all the cells with value 2 (rotten oranges). We will also mark their adjacent cells ...
Round duration - 50 minutes
Round difficulty - Medium
the interviewer was very polite and straightforward, he didn't ask me to introduce myself and he directly jumps to the coding problems.
What is new about the relationship between the and tags in HTML5?
Explain Components, Modules and Services in Angular
You have a robot currently positioned at the origin (0, 0) on a two-dimensional grid, facing the north direction. You are given a sequence of moves in the form of a string ...
Initialize a variable ‘direction’ with 0 which means that the robot is initially facing towards the north.
direction: 0 -> Robot is facing towards the North
direction: 1 -> Robot is facing towards the West
direction: 2 -> Robot is facing towards the South
direction: 3 -> Robot is facing towards the West
Initialize two variables ‘x’ and ‘y’ as 0. They will represent the position ...
Round duration - 70 minutes
Round difficulty - Easy
What is a View in sql? What are the TRUNCATE, DELETE and DROP statements?
Given a square matrix 'MATRIX' of non-negative integers, rotate the matrix by 90 degrees in an anti-clockwise direction using only constant extra space.
The idea is to find the transpose of the given matrix and then reverse the columns of the transposed matrix. For example:
For the given 2D matrix:
[ [ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ] ]
After taking transpose, it will become:
[ [ 1, 4, 7 ],
[ 2, 5, 8 ],
[ 3, 6, 9 ] ]
After reversing the columns, it will ...
Given a string STR
of length N
, determine the minimum number of characters to be added to the front of the string to make it a palindrome.
The first...
Round duration - 20 minutes
Round difficulty - Easy
Tip 1 : Deep knowledge of the projects mentioned in your resume is a must.
Tip 2 : Practice as many problems as you can from leetcode.
Tip 1 : mention 1 or 2 projects in your resume.
Tip 2 : don't put false things in your resume.
I was interviewed in Aug 2021.
Round duration - 70 minutes
Round difficulty - Medium
The test started around 3 pm and was of 70 minutes. 3 coding questions were asked which were mainly on trees and number theory.
Develop a program to compute the factorial of a given integer 'n'.
The factorial of a non-negative integer 'n', denoted as n!
, is the product of all positive integ...
Given a list of integers of size N
, your task is to determine the Next Greater Element (NGE) for every element. The Next Greater Element for an element X
is the firs...
For every element in the array, we will run a loop on its right side. As soon as we find an element on its right side which is greater than it, we will break the loop, assign it as the NGE of this element, move forward, and do the same for the next element.
Space Complexity: O(1)Explanation:O(1)
No extra space is used.
Time Complexity: O(n^2)Explanation:O(N ^ 2), Where N is the number of elements ...
Given a Binary Search Tree (BST) and an integer, write a function to return the ceil value of a particular key in the BST.
The ceil of an integer is defined as the s...
We will traverse the Binary search tree from the root node till we find the node whose key value is given, and upon getting that, we return the ceil value of it.
The steps are as follows:
Round duration - 60 minutes
Round difficulty - Medium
Interviewer was very friendly and supportive. My interview happened on google meet. What is a View? What is Denormalization? Difference between “==” and “===” operators in js.
You are given an integer array ARR
. Determine the length of the shortest contiguous subarray which, when sorted in ascending order, results in the entire array being sorted in a...
In this approach, we consider every possible subarray that can be formed from the given array ‘ARR’. For every subarray ARR[i … j] considered, we need to check whether this is the smallest unsorted subarray or not.
The algorithm is as follows:
Given an integer array arr
of size 'N' containing only 0s, 1s, and 2s, write an algorithm to sort the array.
The first line contains an integer 'T' representing the n...
Use any good sorting algorithm like Merge Sort, Quick Sort or inbuilt sorting function of different languages.
O(1), As we are using constant space.
Time Complexity: O(nlogn)Explanation:O(N*log(N)), where ‘N’ is the size of the array.
We are using inbuilt sort algorithm which has Overall Time Complexity O(N*log(N))
Round duration - 60 minutes
Round difficulty - Medium
What are some of the advantages of Angular over other frameworks?
Determine if two nodes in a binary tree are cousins. Nodes are considered cousins if they are at the same level and have different parents.
In a binary tree, e...
Round duration - 10 minutes
Round difficulty - Easy
I got a call from HR in the evening around 6:30 pm.
Tip 1 : Do prepare such questions before hand only.
Tip 2 : Speak confidently.
Tip 1 : Do remember the names of the interviewers who took your interview.
Tip 1 : Do a research before hand about what does the company do.
Tip 1 : Practice at least 350 questions to have good hold on data structures
Tip 2 : Practice at least 100 - 150 company specific coding questions.
Tip 3 : Try to give timing contests to build up your speed.
Tip 1 : Keep your resume only of 1 page
Tip 2 : Showcase your major projects on the top
I was interviewed before Mar 2021.
Round duration - 70 minutes
Round difficulty - Easy
there was some coding questions and some mcqs related to js, html, css, java and aptitude.
Given an undirected graph with V vertices and E edges, your task is to find all the bridges in this graph. A bridge is an edge that, when removed, increases the number of...
The brute force approach to find all the bridges in a given graph is to check for every edge if it is a bridge or not, by first not considering current edge is not in given graph and then checking if the vertices that it was connecting are still connected or not, using DFS(DepthFirst Search). Given below is an algorithm that will find all bridges in a graph.
Algorithm :
Mr. X is a professional robber with a plan to rob houses arranged in a circular street. Each house has a certain amount of money hidden, separated by a security system that ...
The task is to find the maximum amount of money Mr. X can rob from houses arranged in a circle without alerting the police.
The problem can be solved using dynamic programming.
Create two arrays to store the maximum amount of money robbed when considering the first house and when not considering the first house.
Iterate through the array and update the maximum amount of money robbed at each house.
The final answer will be
Tip 1 : Do 300+ questions on IB or leetcode or gfg
Tip 2 : Must do DSA course of coding ninjas for clear understanding
Tip 3 : Must complete CS subjects also
Tip 1 : not add too much things
Tip 2 : be confident that you write in CV
I was interviewed before Mar 2021.
Round duration - 90 minutes
Round difficulty - Medium
It was in the evening, at around 3 - 4 PM. There were 3 coding questions. One easy, two moderate ones. The platform had autocomplete feature too.
You have an array of integers, and your task is to modify the array by moving all even numbers to the beginning while placing all odd numbers at the end. The order within ev...
Your task is to determine if two given strings are anagrams of each other. Two strings are considered anagrams if you can rearrange the letters of one string to form the...
You are given a binary search tree (BST) containing N nodes. Additionally, you have references to two nodes, P and Q, within this BST.
Your task is to determine the Lowest Com...
Round duration - 50 Minutes
Round difficulty - Medium
They asked 2 coding questions and 2 sql queries in this round
Given a string ‘S’ composed of lowercase English letters, your task is to identify the longest palindromic substring within ‘S’.
If there are multiple longest palin...
You are given a long type array/list ARR
of size N
, representing an elevation map. The value ARR[i]
denotes the elevation of the ith
bar. Your task is to determine th...
Round duration - 50 Minutes
Round difficulty - Medium
This round was about OS, networking and my projects. What are the different ways to style a React component?
Name a few techniques to optimize React app performance.
Round duration - 30 Minutes
Round difficulty - Easy
It was a fun round, in which they ask about your preferences about programming languages, technologies or your hobbies. If you reach this round, it means that your chances of selection are 99%.
Tip 1 : If weak in coding, enroll for Coding Ninjas eminence course
Tip 2 : Practice everyday, atleast 2- 3 questions
Tip 3 : Participate in weekly coding contests on leetcode
Tip 1 : Keep in One page
Tip 2 : Don't mention your hobbies, recruiters are not interested in them and moreover hobbies take up space
Tip 3 : Have some unique projects on your resume. The projects should be self made, not from code-along sessions from youtube.
Paytm interview questions for designations
I was interviewed before Mar 2021.
Round duration - 90 Minutes
Round difficulty - Easy
MCQ based on web and oops.
Given two binary trees, T and S, determine whether S is a subtree of T. The tree S should have the same structure and node values as a subtree of T.
Round duration - 50 Minutes
Round difficulty - Easy
This round involved a discussion of a project I had undertaken recently and a coding problem. How does an Angular application work? List out differences between AngularJS and Angular
You are provided with a number of stairs, and initially, you are located at the 0th stair. You need to reach the Nth stair, and you can climb one or tw...
The task is to find the number of distinct ways to climb from the 0th step to the Nth step, where each time you can climb either one step or two steps.
Use dynamic programming to solve this problem
Create an array to store the number of ways to reach each step
Initialize the first two elements of the array as 1 and 2
For each subsequent step, the number of ways to reach that step is the sum of the number of ways to reach t...
Round duration - 80 Minutes
Round difficulty - Medium
The interview mostly focused on coding problems and Java-related concepts.
Given a positive integer 'N', representing the number of tasks, and a list of dependency pairs, determine if it is possible to complete all tasks considering thes...
You are provided with an array 'Arr' containing 'N' distinct integers and a positive integer 'K'. Your task is to find the Kth smallest and Kth largest e...
Round duration - 30 Minutes
Round difficulty - Easy
This was the Hiring Manager Round. What is a Primary Key? What is a Cross-Join? What is the difference between Clustered and Non-clustered index?
You are given an N * N matrix of integers where each row and each column is sorted in increasing order. Your task is to find the positi...
Tip 1 : Practice Standard Dynamic Programming and Graph Theory Questions
Tip 2 : If you know Java, Be well versed with Fundamentals
Tip 3 : Have atleast one Good Project you can talk about
Tip 1 : Keep it Concise
Tip 2 : Only Mention Stuff you know
Get interview-ready with Top Paytm Interview Questions
I was interviewed in Sep 2020.
Top trending discussions
posted on 1 Oct 2024
I applied via Approached by Company and was interviewed in Sep 2024. There was 1 interview round.
It will be a basic maths questions.
As a general topic of trend in world.
To be known for programming knowledge about us.
Java 1.8 introduced several new features including lambda expressions, functional interfaces, streams, and default methods.
Lambda expressions allow you to write code in a more concise and readable way.
Functional interfaces are interfaces with a single abstract method, used for lambda expressions.
Streams provide a way to work with sequences of elements and perform operations on them.
Default methods allow interfaces to h...
Program to print elements sorted using Java 8 features
Use Stream API to sort the elements
Use lambda expressions for sorting
Use the sorted() method to sort the elements
based on 1 review
Rating in categories
Team Lead
2.3k
salaries
| ₹2.5 L/yr - ₹11.4 L/yr |
Software Engineer
1.4k
salaries
| ₹6 L/yr - ₹23 L/yr |
Senior Software Engineer
1.4k
salaries
| ₹10 L/yr - ₹40 L/yr |
Sales Executive
976
salaries
| ₹1 L/yr - ₹6.4 L/yr |
Senior Associate
916
salaries
| ₹2.2 L/yr - ₹9 L/yr |
BharatPe
Zerodha
Razorpay
Mobikwik