Paytm (One97 Communications Limited) interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Paytm (One97 Communications Limited)
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Journey
I started preparing from my first year of college itself. Then, I began practicing DSA regularly on the Coding Ninjas platform, CodeStudio.
Application story
This is an on-campus opportunity. The company visited our campus for selection, and I applied for it.
Why selected/rejected for the role?
I was accepted for this role because I am able to provide an optimized solution for one of the questions.
Preparation
Duration: 4 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming,System Design
Tip
Tip

Tip 1: Practice at least 250 questions. 

Tip 2: For example, do at least 2 projects.

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1:Have some projects on your resume.

Tip 2: Do not put false information on your resume.

Interview rounds

01
Round
Easy
Video Call
Duration45 minutes
Interview date20 Oct 2022
Coding problem2
Hard
20m average time
80% success
0/120
Asked in companies
Goldman SachsUberApple

You are given an arbitrary binary tree, a node of the tree, and an integer 'K'. You need to find all such nodes which have a distance K from the given node and return the list of these nodes.


Distance between two nodes in a binary tree is defined as the number of connections/edges in the path between the two nodes.


Note:

1. A binary tree is a tree in which each node has at most two children. 
2. The given tree will be non-empty.
3. The given tree can have multiple nodes with the same value.
4. If there are no nodes in the tree which are at distance = K from the given node, return an empty list.
5. You can return the list of values of valid nodes in any order. For example if the valid nodes have values 1,2,3, then you can return {1,2,3} or {3,1,2} etc.
Example :

Sample Output 2 explanation

Consider this tree above. The target node is 5 and K = 3. The nodes at distance 1 from node 5 are {2}, nodes at distance 2 from node 5 are {1, 4} and nodes at distance 3 from node 5 are {6, 3}.
Problem approach

You are given an arbitrary binary tree, a node of the tree, and an integer 'K'. You need to find all such nodes which have a distance K from the given node and return the list of these nodes.
Distance between two nodes in a binary tree is defined as the number of connections/edges in the path between the two nodes

Try solving now

2. Encrypt The Digits

Moderate
15m average time
85% success
0/80
Asked in company
Adobe

Ninja is assigned with the duty of creating some problems on algebra or we can say questions on evaluating the expression. After creating those questions he has to send it so that the answer sheet according to the questions can be made. So he thinks someone might get his paper in between so he thinks of an encryption technique.

So in this encryption technique, he writes his expression in the form of a binary tree where leaf nodes represent the value and all other nodes represent the binary operators like ‘-’, ‘+’, ‘/’, ‘*’.

So now ninja has to find a way of decrypting his own technique as he has to tell the way of decrypting his own expression so that the answer team is able to solve his expression.

So your task is to write the code that can evaluate the given expression in the form of a binary tree where each node must have two children except leaf nodes and leaf nodes represent integer while other nodes represent binary operators like ‘-’, ‘+’, ‘/’, ‘*’.

Example:

Example

Consider the following binary search tree so the evaluation of the expression is ( 4 *  ( 5 - ( 2+ 7 ) ) ) = ‘-16’

Note:

You have been given the root of the tree.
Problem approach

Given a numeric string ‘STR’ which is a string containing numeric characters from ‘0’ to ‘9’, you have to encrypt the string by changing each numeric character as shown below:
‘0’ -> ‘9’
‘1’ -> ‘8’
‘2’ -> ‘7’ and so on till ‘9’ -> ‘0’

Try solving now
02
Round
Easy
Video Call
Duration45 minutes
Interview date20 Oct 2022
Coding problem1

1. Diagonal Traversal of a binary tree.

Moderate
20m average time
80% success
0/80
Asked in companies
MicrosoftSamsungBoston Consulting Group

You have been given a binary tree of integers. You have to return all the diagonal paths of the binary tree. A diagonal path is one in which all the nodes pass through -1 slope line.

A binary tree is a tree in which each parent node has at most two children.

Note:

Order of return of diagonal path’s array/vector: The rightmost diagonal path must come first, and so on.
Every parent node comes first then the child node. In other words, return the diagonal element from top to bottom.

Example

Consider the given binary tree.

subsequence

There are 4 diagonal paths:
1 3 6
2 5 9
4 8
7
You need to return ‘1 3 6 2 5 9 4 8 7’.

Let's consider this example

subsequence

Diagonal paths are:
1 3 6
2 5
4

You need to return ‘1 3 6 2 5 4’.
Problem approach

You have been given a binary tree of integers. You are supposed to find the diagonal traversal(refer to Example) of the given binary tree.

Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

To make an AI less repetitive in a long paragraph, you should increase:

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by Paytm (One97 Communications Limited)
922 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Paytm (One97 Communications Limited)
715 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 10 problems
Interviewed by Paytm (One97 Communications Limited)
541 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 8 problems
Interviewed by Paytm (One97 Communications Limited)
521 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114452 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57718 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34913 views
7 comments
0 upvotes