Add office photos
Paytm logo
Engaged Employer

Paytm

Verified
3.3
based on 7.4k Reviews
Video summary
Filter interviews by
Designation
Fresher
Experienced
Skills

400+ Paytm Interview Questions and Answers

Updated 1 Mar 2025
Popular Designations

Q101. Print Nodes at Distance K from a Given Node

Given an arbitrary binary tree, a node of the tree, and an integer 'K', find all nodes that are at a distance K from the specified node, and return a list of these no...read more

Ans.

Given a binary tree, a target node, and an integer K, find all nodes at distance K from the target node.

  • Traverse the binary tree to find the target node.

  • From the target node, perform a depth-first search to find nodes at distance K.

  • Use a recursive function to keep track of the distance from the target node.

  • Return the values of nodes found at distance K in any order.

Add your answer
right arrow

Q102. Binary Tree Diameter Problem Statement

You are given a Binary Tree, and you need to determine the length of the diameter of the tree.

The diameter of a binary tree is the length of the longest path between any ...read more

Ans.

The task is to find the diameter of a binary tree, which is the longest path between any two nodes in the tree.

  • Traverse the tree to find the longest path between any two nodes.

  • Keep track of the maximum diameter found during traversal.

  • The diameter may not necessarily pass through the root node.

  • Consider both left and right subtrees while calculating the diameter.

  • Example: For input '1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1 -1 -1', the diameter is 6.

Add your answer
right arrow
Paytm Interview Questions and Answers for Freshers
illustration image

Q103. Are you agree to visit merchant physically in market ?

Ans.

Yes, I am willing to visit merchants physically in the market.

  • I believe that face-to-face interaction is crucial in building strong relationships with clients.

  • Visiting merchants in the market allows me to understand their needs and concerns better.

  • It also gives me the opportunity to showcase our products and services in person.

  • I am comfortable with traveling and have a flexible schedule to accommodate market visits.

View 13 more answers
right arrow

Q104. Prerequisite Task Completion Verification

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 these prer...read more

Ans.

Determine if it is possible to complete all tasks considering prerequisites.

  • Create a graph representation of the tasks and dependencies.

  • Use topological sorting to check if there is a cycle in the graph.

  • Return 'Yes' if no cycle is found, 'No' otherwise.

Add your answer
right arrow
Discover Paytm interview dos and don'ts from real experiences

Q105. Trapping Rain Water Problem Statement

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 the tota...read more

Ans.

Calculate the total amount of rainwater that can be trapped between given elevations in an array.

  • Iterate through the array and calculate the maximum height on the left and right of each bar.

  • Calculate the amount of water that can be trapped at each bar by taking the minimum of the maximum heights on the left and right.

  • Sum up the trapped water at each bar to get the total trapped water for the entire array.

Add your answer
right arrow

Q106. Integer to Roman Conversion

Given an integer N, convert it to its corresponding Roman numeral representation. Roman numerals comprise seven symbols: I, V, X, L, C, D, and M.

Example:

Input:
N = 2
Output:
II
Exp...read more
Ans.

Convert an integer to its corresponding Roman numeral representation.

  • Create a mapping of integer values to Roman numeral symbols.

  • Iterate through the mapping in descending order of values and build the Roman numeral representation.

  • Subtract the largest possible value from the integer at each step and append the corresponding Roman numeral symbol.

  • Repeat until the integer becomes 0.

Add your answer
right arrow
Are these interview questions helpful?

Q107. Write a function in javascript to hide text on mouse click

Ans.

Function to hide text on mouse click in JavaScript

  • Create a function that takes an element as input

  • Add an event listener to the element for a mouse click

  • Toggle the element's display property between 'none' and its original value

Add your answer
right arrow

Q108. Find All Pairs Adding Up to Target

Given an array of integers ARR of length N and an integer Target, your task is to return all pairs of elements such that they add up to the Target.

Input:

The first line conta...read more
Ans.

Given an array of integers and a target, find all pairs of elements that add up to the target.

  • Iterate through the array and for each element, check if the target minus the element exists in a hash set.

  • If it does, add the pair to the result. If not, add the element to the hash set.

  • Handle cases where the same element is used twice in a pair.

  • Return (-1, -1) if no pair is found.

Add your answer
right arrow
Share interview questions and help millions of jobseekers 🌟
man with laptop

Q109. Reverse the String Problem Statement

You are given a string STR which contains alphabets, numbers, and special characters. Your task is to reverse the string.

Example:

Input:
STR = "abcde"
Output:
"edcba"

Input...read more

Ans.

Reverse a given string containing alphabets, numbers, and special characters.

  • Iterate through the characters of the string from end to start and append them to a new string.

  • Use built-in functions like reverse() or StringBuilder in languages like Python or Java for efficient reversal.

  • Handle special characters and numbers along with alphabets while reversing the string.

  • Ensure to consider the constraints on the number of test cases and the length of the input string.

Add your answer
right arrow
Q110. ...read more

Number and Digits Problem Statement

You are provided with a positive integer N. Your task is to identify all numbers such that the sum of the number and its digits equals N.

Example:

Input:
N = 21
Output:
[15]
Ans.

Identify numbers whose sum of digits and number equals given integer N.

  • Iterate through numbers from 1 to N and check if sum of number and its digits equals N.

  • Use a helper function to calculate sum of digits for a given number.

  • Return the numbers that satisfy the condition in increasing order, else return -1.

Add your answer
right arrow

Q111. Encrypt The Digits Problem Statement

Given a numeric string STR consisting of characters from ‘0’ to ‘9’, encrypt the string by replacing each numeric character according to the mapping:
‘0’ -> ‘9’, ‘1’ -> ‘8’, ...read more

Ans.

Encrypt each digit in a numeric string by replacing it with its encrypted equivalent.

  • Iterate through each character in the string and replace it with its encrypted equivalent

  • Use a mapping to determine the encrypted equivalent of each digit

  • Return the encrypted string for each test case

Add your answer
right arrow

Q112. Bridge in Graph Problem Statement

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 conne...read more

Ans.

Find all the bridges in an undirected graph by identifying edges that, when removed, increase the number of connected components.

  • Use Tarjan's algorithm to find bridges in the graph.

  • Keep track of the discovery time and low time of each vertex during DFS traversal.

  • An edge (u, v) is a bridge if low[v] > disc[u].

  • Handle multiple test cases efficiently to find bridges in each graph.

  • Ensure the output contains the count of bridges and the vertices defining each bridge.

Add your answer
right arrow

Q113. Circular Move Problem Statement

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 of len...read more

Ans.

Determine if a robot's movement path is circular on a 2D grid given a sequence of moves.

  • Iterate through the move sequence and update the robot's position based on the moves ('L' - turn left, 'R' - turn right, 'G' - move forward).

  • Check if the robot returns to the starting position after completing the move sequence.

  • If the robot ends up at the starting position and facing the north direction, the movement path is circular.

Add your answer
right arrow

Q114. Subset Sum Equal To K Problem Statement

Given an array/list of positive integers and an integer K, determine if there exists a subset whose sum equals K.

Provide true if such a subset exists, otherwise return f...read more

Ans.

Given an array of positive integers and an integer K, determine if there exists a subset whose sum equals K.

  • Use dynamic programming to solve this problem efficiently

  • Create a 2D array to store if a subset sum is possible for each element and sum

  • Iterate through the array and update the 2D array accordingly

  • Check if the subset sum for K is possible using the 2D array

Add your answer
right arrow

Q115. Write a function that returns '3' when '4' is passed as an input and vice versa without using if-else condition

Ans.

Function to swap '3' and '4' without using if-else

  • Use XOR operator to swap the values

  • Convert the input to ASCII code and perform the swap

  • Use a lookup table to map the values

Add your answer
right arrow

Q116. What is the problem with arrays?

Ans.

Arrays have fixed size and can lead to memory wastage and performance issues.

  • Arrays have a fixed size and cannot be resized dynamically.

  • Inserting or deleting elements in an array can be time-consuming.

  • Arrays can lead to memory wastage if they are not fully utilized.

  • Arrays can cause performance issues if they are too large and need to be traversed frequently.

  • Arrays can also be prone to buffer overflow attacks.

  • Example: An array of size 10 is created but only 5 elements are used...read more

Add your answer
right arrow

Q117. String Palindrome Verification

Given a string, your task is to determine if it is a palindrome considering only alphanumeric characters.

Input:

The input is a single string without any leading or trailing space...read more
Ans.

Check if a given string is a palindrome considering only alphanumeric characters.

  • Remove non-alphanumeric characters from the input string.

  • Compare the string with its reverse to check for palindrome.

  • Handle edge cases like empty string or single character input.

  • Use two pointers approach for efficient comparison.

Add your answer
right arrow

Q118. What is JVM ? Difference between JVM and compiler

Ans.

JVM stands for Java Virtual Machine. It is an abstract machine that provides a runtime environment for Java programs.

  • JVM is responsible for interpreting the compiled Java code and executing it.

  • It provides platform independence by converting bytecode into machine-specific code.

  • JVM has various components like class loader, bytecode verifier, and execution engine.

  • Compiler converts source code into bytecode, while JVM executes the bytecode.

  • JVM is used not only for Java but also f...read more

Add your answer
right arrow

Q119. Given the code to flat the array ex : Input - [2,3,[4,5,[6,7],8,9,[0]]] Output : [2,3,4,5,6,7,8,9,0]

Ans.

Flatten a nested array into a single-level array.

  • Use recursion to iterate through each element of the array.

  • If the element is an array, call the function recursively.

  • If the element is not an array, add it to the result array.

View 2 more answers
right arrow

Q120. what is indexing? Why it is used?

Ans.

Indexing is the process of creating an index for faster data retrieval. It is used to improve search performance.

  • Indexing creates a data structure that allows for faster searching and sorting of data.

  • It is commonly used in databases to improve query performance.

  • Examples of indexing include B-trees, hash indexes, and bitmap indexes.

  • Without indexing, searching through large amounts of data can be slow and inefficient.

View 1 answer
right arrow

Q121. Explain logistic regression and its cost function, difference between logistic regression and linear regression,disadvantage of logistic regression?

Ans.

Logistic regression is a classification algorithm used to predict binary outcomes.

  • Logistic regression uses a sigmoid function to map input values to a probability score.

  • The cost function for logistic regression is the negative log-likelihood function.

  • Unlike linear regression, logistic regression is used for classification tasks.

  • Logistic regression assumes a linear relationship between the input variables and the log-odds of the output variable.

  • A disadvantage of logistic regre...read more

Add your answer
right arrow

Q122. A 2D matrix is given which is row wise and column wise sorted. Find a particular element from it

Ans.

Finding an element in a sorted 2D matrix

  • Start from the top right corner or bottom left corner

  • Compare the target element with the current element

  • Move left or down if the target is smaller, else move right or up

  • Repeat until the target is found or all elements are checked

Add your answer
right arrow
Q123. Can you describe the system design for a platform like BookMyShow and the questions that were raised during the discussion?
Ans.

Design a bookmyshow system

  • Design a system to book and manage movie tickets

  • Consider features like seat selection, payment, and ticket cancellation

  • Include user authentication and authorization

  • Implement a database to store movie and theater information

  • Consider scalability and performance of the system

Add your answer
right arrow

Q124. What are the best and worst solutions for the coding problem "Longest Substring Without Repeating Characters," including a detailed explanation of each solution along with their time and space complexity?

Ans.

The Longest Substring Without Repeating Characters problem involves finding the length of the longest substring without any repeating characters.

  • Best solution: Sliding Window approach with HashSet to track unique characters. Time complexity O(n), space complexity O(min(n, m)) where n is the length of the string and m is the size of the character set.

  • Worst solution: Brute force approach checking all substrings for uniqueness. Time complexity O(n^3), space complexity O(min(n, m...read more

Add your answer
right arrow
Q125. What are the conditions for a deadlock to occur?
Ans.

Deadlock occurs when two or more processes are waiting for each other to release resources, resulting in a standstill.

  • Two or more processes must be holding resources and waiting for resources held by other processes

  • Processes cannot proceed because they are stuck in a circular wait

  • Resources cannot be forcibly released by the operating system

  • Examples: Process A holds Resource 1 and waits for Resource 2, while Process B holds Resource 2 and waits for Resource 1

Add your answer
right arrow

Q126. Priority CPU Scheduling Problem

Given 'N' processes with their “burst times”, where the “arrival time” for all processes is ‘0’, and the ‘priority’ of each process, your task is to compute the “waiting time” an...read more

Ans.

Implement Priority CPU Scheduling algorithm to compute waiting time and turn-around time for processes.

  • Implement a function that takes in burst times, priorities, and number of processes as input

  • Sort the processes based on priority, with lower process ID as tiebreaker

  • Calculate waiting time and turn-around time for each process based on the scheduling algorithm

Add your answer
right arrow

Q127. What are B+ trees?what is the advantage?

Ans.

B+ trees are balanced trees used for indexing and searching large amounts of data.

  • B+ trees are similar to binary search trees but have multiple keys per node.

  • They are commonly used in databases and file systems.

  • B+ trees have a high fanout, reducing the number of disk accesses required for searching.

  • They are also self-balancing, ensuring efficient performance even with large amounts of data.

  • Example: In a database, a B+ tree can be used to index customer records by last name.

Add your answer
right arrow
Q128. Design a search service that provides relevant results for travel.
Ans.

Design a search service for travel with relevant results.

  • Utilize user input to determine search criteria (destination, dates, budget, etc.)

  • Incorporate filters for specific preferences (e.g. hotel ratings, airline preferences)

  • Implement algorithms to prioritize results based on relevance and user behavior

  • Integrate with external APIs for real-time availability and pricing information

Add your answer
right arrow

Q129. Any feature i would like to add in PayTM app?

Ans.

I would like to add a feature for splitting bills among friends.

  • The feature would allow users to split bills for movies, dinners, etc.

  • Users can select friends from their contact list and split the bill equally or unequally.

  • The app would send a notification to the selected friends to pay their share.

  • The feature would make it easier for users to split expenses and avoid awkward conversations.

  • It would also encourage more usage of the PayTM app for group activities.

Add your answer
right arrow

Q130. What is your favourite Product? Fetch 3 improvement areas and prepare a quarterly roadmap to solve those.

Ans.

My favorite product is the iPhone. Improvement areas: battery life, camera quality, and Siri functionality.

  • Battery life can be improved by optimizing software and hardware components.

  • Camera quality can be improved by upgrading the lens and sensor technology.

  • Siri functionality can be improved by enhancing natural language processing and expanding its capabilities.

  • Quarterly roadmap: Q1 - research and development, Q2 - prototype testing, Q3 - beta testing, Q4 - release and marke...read more

Add your answer
right arrow
Q131. What is the order of execution of SQL clauses?
Ans.

The order of execution of SQL clauses is: SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY.

  • The SELECT clause is executed first to retrieve the desired columns from the table.

  • The FROM clause is executed next to specify the table(s) from which the data is retrieved.

  • The WHERE clause is executed after the FROM clause to filter the rows based on specified conditions.

  • The GROUP BY clause is executed to group the rows based on specified columns.

  • The HAVING clause is executed after the ...read more

View 1 answer
right arrow

Q132. Given an array find the number of conitnuous sequences having equal number of 0's and 1's

Ans.

Count the number of continuous sequences with equal number of 0's and 1's in an array.

  • Iterate through the array and keep track of the count of 0's and 1's encountered so far.

  • Store the difference between the counts in a hash table and increment the count for that difference.

  • If the difference is already present in the hash table, add the count to the existing value.

  • Return the sum of all values in the hash table.

Add your answer
right arrow
Q133. What JavaScript questions did he ask you during the managerial round, and can you describe the work culture of his team?
Ans.

The interviewer asked about JavaScript questions and the work culture of the team during the managerial round.

  • JavaScript questions related to closures, prototypes, event handling, and asynchronous programming may have been asked.

  • Work culture may involve collaboration, innovation, agile methodologies, and continuous learning.

  • Examples of work culture could include regular team meetings, code reviews, hackathons, and mentorship programs.

Add your answer
right arrow
Q134. Design a stack that supports the getMin() operation in O(1) time and O(1) extra space.
Ans.

Use two stacks - one to store actual values and one to store minimum values.

  • Use two stacks - one to store actual values and one to store minimum values

  • When pushing a new value, check if it is smaller than the current minimum and push it to the min stack if so

  • When popping a value, check if it is the current minimum and pop from min stack if so

  • getMin() operation can be done by peeking at the top of the min stack

Add your answer
right arrow

Q135. Can you implement a stack using queue

Ans.

Yes, we can implement a stack using two queues.

  • Push operation: Enqueue the element to the first queue.

  • Pop operation: Dequeue all elements from the first queue and enqueue them to the second queue until the last element. Dequeue and return the last element. Swap the names of the queues.

  • Top operation: Same as pop operation but don't dequeue the last element.

  • Example: Push 1, 2, 3. Queue 1: 1 2 3. Queue 2: empty. Pop operation: Dequeue 1 and 2 from queue 1 and enqueue them to que...read more

Add your answer
right arrow

Q136. Infinite scroll - how to handle large size data, efficient and smooth loading by scrolling up & down.

Ans.

To handle large size data for infinite scroll, use virtual scrolling, lazy loading, and optimize data fetching/rendering.

  • Implement virtual scrolling to render only the visible items on the screen, reducing memory usage and improving performance.

  • Use lazy loading to fetch more data as the user scrolls, avoiding loading all data at once.

  • Optimize data fetching and rendering by using efficient algorithms and data structures, and minimizing unnecessary operations.

  • Consider implement...read more

Add your answer
right arrow

Q137. How we fill some information in all the selected blank space in just one click in Google sheet ?

Ans.

Yes, we can use the Fill Down feature in Google Sheets to fill information in all selected blank spaces in just one click.

  • Select the cell with the information you want to fill

  • Hover over the bottom right corner of the cell until the cursor changes to a small blue square

  • Click and drag the blue square down to the last cell where you want the information to be filled

View 1 answer
right arrow

Q138. Modify the given 2×2 matrix in such a way that if a cell contains 0 all the elements of corresponding row and columm becomes 0

Ans.

Modify a 2x2 matrix to replace row and column with 0 if a cell contains 0.

  • Iterate through the matrix and find the cells with 0.

  • Store the row and column index of the cells with 0 in separate arrays.

  • Iterate through the row and column arrays and replace all elements with 0.

  • Return the modified matrix.

Add your answer
right arrow

Q139. You are Product Lead of Google Map India. You have a revenue Target of 300 mn USD to cover in a year. Looking at Smartphone penetration of India what you would do. Constraint: Any service can not be covered whi...

read more
Ans.

Explore partnerships with local businesses to offer location-based promotions and discounts.

  • Partner with popular local restaurants and cafes to offer exclusive discounts to Google Map users.

  • Collaborate with retail stores to offer location-based promotions to users who check-in on Google Map.

  • Introduce a loyalty program for frequent Google Map users, offering rewards and discounts.

  • Offer premium features such as offline maps and real-time traffic updates for a subscription fee.

  • E...read more

Add your answer
right arrow
Q140. What is the difference between inheritance and generalization in the context of database management systems?
Ans.

Inheritance is a relationship between a superclass and subclass, while generalization is a relationship between entities with common characteristics.

  • Inheritance involves a parent-child relationship where the child class inherits attributes and methods from the parent class.

  • Generalization involves grouping entities with common attributes into a higher-level entity.

  • Inheritance is a specific form of generalization in object-oriented programming.

  • Example: In a database, a 'Car' en...read more

Add your answer
right arrow
Q141. How do you find the count of visitors that came today and the count of new visitors that arrived today?
Ans.

To find the count of visitors and new visitors that came today in a database management system (DBMS).

  • Use a query to filter the visitors based on the current date.

  • Count the total number of visitors using the COUNT function.

  • To find new visitors, compare the current date with the date of their first visit.

  • Use the DISTINCT keyword to count only unique new visitors.

Add your answer
right arrow

Q142. Find the odd repeating element from a set of repeating elements

Ans.

Find the odd repeating element from an array of strings

  • Use a hash table to count the frequency of each element

  • Iterate through the hash table to find the element with an odd count

Add your answer
right arrow

Q143. what is memory leak?

Ans.

Memory leak is a situation where a program fails to release memory it no longer needs.

  • Memory leaks can cause a program to consume more and more memory over time, eventually leading to crashes or other issues.

  • Memory leaks can be caused by programming errors such as not freeing memory after it is no longer needed.

  • Tools like valgrind can be used to detect memory leaks in C and C++ programs.

  • Examples of memory leaks include forgetting to free memory allocated with malloc() or new,...read more

Add your answer
right arrow

Q144. which data structure i like?

Ans.

I prefer hash tables for their constant time lookup and insertion.

  • Hash tables are efficient for storing and retrieving data.

  • They have constant time complexity for both insertion and lookup.

  • They can be implemented using arrays or linked lists.

  • Examples include Python's dictionary and Java's HashMap.

Add your answer
right arrow

Q145. design dictionary using trie....having operations of inserting a word, updating and deleting (needed to write full running code)

Ans.

Design a dictionary using trie with insert, update and delete operations.

  • Implement a Trie data structure with nodes containing a character and a boolean flag to indicate end of word

  • For insert operation, traverse the trie and add nodes for each character in the word

  • For update operation, delete the existing word and insert the updated word

  • For delete operation, mark the end of word flag as false and delete the node if it has no children

  • Use recursion for traversal and deletion

  • Exa...read more

Add your answer
right arrow
Q146. How is a Linked List implemented in Java, and when would you prefer it over an ArrayList?
Ans.

A Linked List in Java is implemented using nodes with references to the next node. It is preferred over an ArrayList when frequent insertions and deletions are required.

  • In Java, a Linked List is implemented using a Node class with data and a reference to the next Node.

  • LinkedList class in Java provides methods like add(), remove(), and get() for manipulating the list.

  • Linked List is preferred over ArrayList when frequent insertions and deletions are needed due to its constant-t...read more

Add your answer
right arrow
Asked in
FSE Interview

Q147. how will you attract your customer to sale our companies products ?

Ans.

We will attract customers by highlighting the unique features and benefits of our products.

  • Create a strong marketing campaign that showcases the unique selling points of the products

  • Offer promotions and discounts to incentivize customers to try the products

  • Partner with influencers or industry experts to promote the products on social media

  • Provide excellent customer service to ensure customer satisfaction and repeat business

  • Collect and showcase positive customer reviews and te...read more

View 1 answer
right arrow

Q148. How much do you know about Paytm Services?

Ans.

Paytm is a digital payment platform that offers a range of services including mobile recharge, bill payment, and online shopping.

  • Paytm was launched in 2010 and is headquartered in Noida, India.

  • It allows users to make payments using their mobile phones, and has over 350 million registered users.

  • Paytm offers a range of services including mobile recharge, bill payment, online shopping, and financial services such as loans and insurance.

  • It also has a digital wallet feature that a...read more

View 2 more answers
right arrow
Q149. What are underfitting and overfitting in machine learning models?
Ans.

Underfitting and overfitting are common problems in machine learning models.

  • Underfitting occurs when a model is too simple and fails to capture the underlying patterns in the data.

  • Overfitting happens when a model is too complex and learns the noise or random fluctuations in the training data.

  • Underfitting leads to high bias and low variance, while overfitting leads to low bias and high variance.

  • To address underfitting, we can increase model complexity, gather more data, or use...read more

Add your answer
right arrow

Q150. Number of substrngs which are palindrome

Ans.

Count the number of palindromic substrings in a given string.

  • A substring is a contiguous sequence of characters within a string.

  • A palindrome is a string that reads the same backward as forward.

  • Use dynamic programming to count all palindromic substrings.

  • Time complexity can be reduced to O(n^2) using Manacher's algorithm.

Add your answer
right arrow

Q151. What is kafka and your use case where you have used

Ans.

Kafka is a distributed streaming platform used for building real-time data pipelines and streaming applications.

  • Kafka is used for real-time data processing, messaging, and event streaming.

  • It provides high-throughput, fault-tolerant, and scalable messaging system.

  • Example use case: Implementing a real-time analytics dashboard for monitoring website traffic.

Add your answer
right arrow
Q152. Can you explain the concept of data spooling in operating systems?
Ans.

Data spooling is a process where data is temporarily stored in a buffer before being sent to an output device.

  • Data spooling helps in managing the flow of data between different devices by storing it temporarily.

  • It allows for efficient processing of data by decoupling the input/output operations.

  • Examples of data spooling include print spooling, where print jobs are stored in a queue before being sent to the printer.

Add your answer
right arrow

Q153. Design a Stack that can support getMin functionality. Whenever it calls getMin on stack it should return the min element in the stack.

Ans.

Design a stack that supports getMin functionality to return the minimum element in the stack.

  • Create two stacks, one for storing the actual elements and another for storing the minimum elements.

  • Push elements onto both stacks simultaneously.

  • When popping an element, pop from both stacks.

  • To get the minimum element, peek at the top of the minimum stack.

Add your answer
right arrow

Q154. Check wether a given binary tree is a BST or not

Ans.

To check if a binary tree is a BST, we can perform an in-order traversal and ensure that the elements are in sorted order.

  • Perform an in-order traversal of the binary tree

  • Check if the elements are in sorted order

  • If any element is not in sorted order, then the tree is not a BST

Add your answer
right arrow

Q155. remove char sequence with a particular number like aaaabcbd remove aaaa

Ans.

Answering how to remove a character sequence with a particular number from a string.

  • Identify the character sequence to be removed

  • Use string manipulation functions to remove the sequence

  • Repeat until all instances of the sequence are removed

Add your answer
right arrow

Q156. What is BST ?

Ans.

BST stands for Binary Search Tree, a data structure used for efficient searching and sorting operations.

  • BST is a tree-like data structure where each node has at most two children.

  • The left child of a node contains a value less than the parent node, while the right child contains a value greater than the parent node.

  • BST allows for efficient searching and sorting operations with a time complexity of O(log n).

  • Examples of applications of BST include dictionary implementations and ...read more

Add your answer
right arrow

Q157. How to set equal spacing between childs of constraint layout?

Ans.

To set equal spacing between childs of constraint layout, use the chain style property.

  • Create a chain of the views that need equal spacing using the chain style property.

  • Set the chain style to spread inside the constraint layout.

  • Adjust the margins of the views to control the spacing.

  • Use the layout_constraintHorizontal_chainStyle or layout_constraintVertical_chainStyle attribute to set the chain style.

  • Example: app:layout_constraintHorizontal_chainStyle="spread"

View 1 answer
right arrow
Q158. Find the department-wise highest salary of the employees.
Ans.

The query finds the highest salary for each department.

  • Use the GROUP BY clause to group the employees by department.

  • Use the MAX() function to find the highest salary for each department.

  • Combine the MAX() function with the GROUP BY clause to get the department wise highest salary.

View 1 answer
right arrow

Q159. 1. Find the no of rotations in a rotated sorted array.

Ans.

Find the number of rotations in a rotated sorted array.

  • Use binary search to find the minimum element in the array.

  • The number of rotations is equal to the index of the minimum element.

  • If the minimum element is at index 0, then there are no rotations.

  • If the array is not rotated, then the number of rotations is 0.

Add your answer
right arrow

Q160. Decision trees whole topic ,bagging and boosting ?

Ans.

Decision trees, bagging, and boosting are techniques used in machine learning to improve model accuracy.

  • Decision trees are a type of model that uses a tree-like structure to make predictions.

  • Bagging is a technique that involves training multiple models on different subsets of the data and combining their predictions.

  • Boosting is a technique that involves iteratively training models on the data, with each subsequent model focusing on the errors of the previous model.

  • Both baggin...read more

Add your answer
right arrow

Q161. Why the offline data is so important for any company?

Ans.

Offline data is important for companies as it provides insights into customer behavior and preferences.

  • Offline data can help companies understand customer behavior and preferences

  • It can be used to identify trends and patterns in customer data

  • Offline data can also be used to improve customer experience and personalize marketing efforts

  • Examples of offline data include in-store purchases, customer service interactions, and surveys

  • Offline data can be combined with online data to ...read more

Add your answer
right arrow

Q162. Given a graph, print all the connected components in it.

Ans.

Print all the connected components in a given graph.

  • Traverse the graph using DFS or BFS algorithm.

  • Maintain a visited array to keep track of visited nodes.

  • For each unvisited node, perform DFS or BFS and add all visited nodes to a connected component.

  • Repeat until all nodes are visited.

  • Print all connected components.

Add your answer
right arrow

Q163. How will you perform an audit of a bank where credit card department has not reported any revenue leakage ? how will you test the controls?

Ans.

I would conduct a thorough review of the credit card department's processes, controls, and documentation to identify any potential revenue leakage.

  • Review the credit card department's policies and procedures to understand how revenue is recorded and reported

  • Analyze transaction data to identify any anomalies or discrepancies that could indicate revenue leakage

  • Conduct interviews with staff members to gain insights into their roles and responsibilities in revenue reporting

  • Perform...read more

Add your answer
right arrow

Q164. Merge sort using Linked list ( psuedo code )

Ans.

Merge sort using linked list is a sorting algorithm that divides the list into smaller sublists, sorts them, and then merges them back together.

  • Create a function to merge two sorted linked lists

  • Divide the linked list into two halves using slow and fast pointers

  • Recursively sort the two halves

  • Merge the sorted halves back together

Add your answer
right arrow

Q165. SQL Commands Writing Test Cases for any Product Type of testing

Ans.

SQL commands are used to interact with databases, writing test cases involves creating scenarios to test product functionality, types of testing include unit, integration, regression, etc.

  • SQL commands like SELECT, INSERT, UPDATE, DELETE are used to retrieve, add, modify, and delete data in databases

  • Writing test cases involves creating scenarios to test different aspects of the product such as functionality, performance, security, etc.

  • Types of testing include unit testing to t...read more

Add your answer
right arrow

Q166. Could you elaborate on the procedure you follow when approaching a customer, presenting a proposal, and closing a deal?

Ans.

I approach customers by building rapport, presenting a tailored proposal, and closing the deal with clear next steps.

  • Build rapport by asking open-ended questions and actively listening to their needs.

  • Present a tailored proposal that addresses their specific pain points and offers a solution.

  • Close the deal by clearly outlining the next steps and addressing any objections or concerns.

  • Follow up after the meeting to ensure customer satisfaction and maintain the relationship.

Add your answer
right arrow

Q167. 1. Mininum cost to reach the last cell of a 2D matrix. Required moves are only downward or to the right direction

Ans.

Minimum cost to reach last cell of 2D matrix with only downward or right moves.

  • Use dynamic programming approach to solve the problem.

  • Calculate minimum cost for each cell by considering minimum cost of its adjacent cells.

  • Final answer will be the minimum cost to reach the last cell.

Add your answer
right arrow

Q168. Create Traffic Lights in react.js with lights changing color with time config

Ans.

Create a traffic light simulation in react.js with changing colors based on time configuration.

  • Use React state to manage the current color of the traffic light

  • Set up a timer to change the color of the traffic light at specified intervals

  • Use CSS to style the traffic light and different colors for each light

Add your answer
right arrow

Q169. Write code to find character at given position after expanding the given regex string.

Ans.

Code to find character at given position after expanding regex string

  • Use a regex engine to expand the given regex string

  • Find the substring that matches the given position

  • Return the character at that position in the substring

Add your answer
right arrow

Q170. given date, month and year, write a logic to add days to the given date

Ans.

Logic to add days to a given date

  • Convert date, month, year to a date object

  • Use date object's built-in method to add days

  • Convert the updated date object back to date, month, year format

Add your answer
right arrow

Q171. SQL Query to find Nth highest salary from table

Ans.

SQL query to find Nth highest salary from table

  • Use ORDER BY and LIMIT clauses

  • Use subquery to get the Nth highest salary

  • Handle cases where there are less than N distinct salaries

Add your answer
right arrow

Q172. WAP to reverse a integer number without using String

Ans.

Reversing an integer without using string in Python

  • Convert the integer to a list of digits

  • Reverse the list

  • Convert the list back to an integer

Add your answer
right arrow

Q173. Write a code whose output should be 72 by making a call like this add(5,3).mul(9).calc();

Ans.

Code to output 72 by calling add(5,3).mul(9).calc()

  • Define a class with add, mul, and calc methods

  • add method should add two numbers and return the class instance

  • mul method should multiply the result with a number and return the class instance

  • calc method should return the final result

  • Call the methods in the given order to get the output 72

Add your answer
right arrow

Q174. write a code to convert an account number to asterisk ex: Input : PY12345 Output : PY***45

Ans.

Code to convert account number to asterisk

  • Create a function that takes in an account number as input

  • Use string slicing to replace characters with asterisks

  • Return the modified account number as output

Add your answer
right arrow

Q175. What are your strenghts and how many people can you bring into Paytm

Ans.

My strengths include strong leadership skills, excellent communication, and the ability to motivate and inspire others. I can bring in a team of 10-15 people into Paytm.

  • Strong leadership skills

  • Excellent communication

  • Ability to motivate and inspire others

  • Can bring in a team of 10-15 people into Paytm

View 3 more answers
right arrow
Q176. How can you find the monthly salary of each employee?
Ans.

To find the salary of each employee per month, you need access to a database management system (DBMS) that stores employee data.

  • Access the DBMS and locate the table that stores employee information.

  • Identify the column that contains the salary information.

  • Retrieve the salary data for each employee and calculate the monthly salary.

  • Store the monthly salary information in a suitable data structure, such as an array of strings.

Add your answer
right arrow
Q177. Can you explain the concept of Random Forest?
Ans.

Random Forest is an ensemble learning method that combines multiple decision trees to make predictions.

  • Random Forest is a supervised learning algorithm used for both classification and regression tasks.

  • It creates a multitude of decision trees and combines their predictions to make a final prediction.

  • Each decision tree is trained on a random subset of the training data and features.

  • Random Forest reduces overfitting and improves accuracy compared to a single decision tree.

  • It ca...read more

Add your answer
right arrow

Q178. Give 5 strengths and weakness of yours

Ans.

Strengths: Problem-solving skills, teamwork, adaptability, attention to detail, communication. Weaknesses: Impatience, public speaking, delegation, perfectionism, time management.

  • Strengths: Problem-solving skills - I enjoy tackling complex issues and finding creative solutions.

  • Teamwork - I work well with others and value collaboration in achieving common goals.

  • Adaptability - I am able to quickly adjust to new situations and environments.

  • Attention to detail - I have a keen eye...read more

Add your answer
right arrow

Q179. Puzzles - How to track 1.5 hours with 2 candles that burn for 1 hour each without cutting in half.

Ans.

Use one candle to measure 30 minutes, then light the second candle.

  • Light the first candle at both ends, it will burn for 30 minutes.

  • At the same time, light the second candle from one end.

  • When the first candle burns out after 30 minutes, light the other end of the second candle.

  • The second candle will burn for another 30 minutes, totaling 1.5 hours.

Add your answer
right arrow

Q180. How many classes can be present in a Java file

Ans.

A Java file can have multiple classes, but only one public class.

  • A Java file can have multiple non-public classes.

  • The name of the public class must match the name of the file.

  • Only the public class can be accessed from outside the file.

Add your answer
right arrow

Q181. What are the compliance we follow. Percentage of pf and esic

Ans.

We follow all statutory compliance including PF and ESI. The percentage varies based on employee salary.

  • We comply with all statutory regulations related to PF and ESI

  • The percentage of contribution towards PF and ESI varies based on the employee's salary

  • For PF, the employer contributes 12% of the employee's basic salary and the employee contributes an equal amount

  • For ESI, the employer contributes 4.75% of the employee's gross salary and the employee contributes 1.75%

  • The thresh...read more

Add your answer
right arrow

Q182. Scenario: Suppose a build is supposed to go live in 2 hrs but you just found a bug while monkey testing. What would you do now?

Ans.

I would prioritize the bug based on its severity and impact on the build release.

  • Assess the severity and impact of the bug on the build release timeline.

  • Communicate with the development team to understand the root cause of the bug.

  • Determine if a quick fix can be implemented within the 2-hour timeframe.

  • If a quick fix is not possible, evaluate the option of delaying the build release or releasing with the known bug.

  • Document the bug and its impact on the build release for future...read more

Add your answer
right arrow

Q183. How to acheive responsive acrooss all screen sizes

Ans.

Achieve responsive design by using media queries, flexible layouts, and fluid grids.

  • Use media queries to adjust styles based on screen size

  • Create flexible layouts that adapt to different screen sizes

  • Implement fluid grids to ensure content scales proportionally

Add your answer
right arrow
Q184. What do you know about Paytm?
Ans.

Paytm is a leading Indian digital payment platform offering a wide range of services including mobile recharges, bill payments, and online shopping.

  • Founded in 2010 by Vijay Shekhar Sharma

  • Offers services like mobile recharges, bill payments, online shopping, and digital wallet

  • Acquired by One97 Communications in 2013

  • Expanded into financial services like Paytm Payments Bank and Paytm Money

  • One of the largest digital payment platforms in India

Add your answer
right arrow

Q185. How will you delete the duplicate rows from the table, write SQL query for that.

Add your answer
right arrow

Q186. 1) What is internal mechanism in spark . 2) tungsten project in spark explanation 3) sql problem to check where last two transaction belongs to particular retail

Ans.

Questions related to Spark internals, Tungsten project, and SQL problem for retail transactions.

  • Spark's internal mechanism includes components like Spark Core, Spark SQL, Spark Streaming, and MLlib.

  • Tungsten project in Spark aims to improve the performance of Spark by optimizing memory usage and CPU utilization.

  • To solve the SQL problem, we can use a query to filter transactions for a particular retail and then use the 'ORDER BY' clause to sort them by date and time. We can the...read more

Add your answer
right arrow

Q187. What do you no about sales ??

Ans.

Sales involves the process of selling products or services to customers in exchange for money.

  • Sales requires effective communication and persuasion skills.

  • It involves identifying potential customers and understanding their needs.

  • Salespeople must be knowledgeable about the products or services they are selling.

  • Closing deals and building long-term relationships with customers is crucial.

  • Sales can be done through various channels such as face-to-face, phone, email, or online.

  • Suc...read more

View 4 more answers
right arrow

Q188. How Do you initialise a browser using selenium

Ans.

To initialise a browser using Selenium, we need to create an instance of the WebDriver interface.

  • Import the necessary packages for Selenium and WebDriver

  • Create an instance of the desired browser driver

  • Use the driver instance to open a new browser window

Add your answer
right arrow

Q189. Whole garbage collector and its process in java

Ans.

Garbage collector in Java manages memory allocation and deallocation automatically.

  • Garbage collector runs in the background and frees up memory that is no longer in use.

  • It uses different algorithms like Mark and Sweep, Copying, and Generational.

  • System.gc() can be used to request garbage collection, but it's not guaranteed to run immediately.

  • Garbage collector can cause performance issues if not tuned properly.

  • Java provides tools like jstat and jvisualvm to monitor and analyze ...read more

Add your answer
right arrow

Q190. If timeline or budget were not constraints, what would your ideal solution look like?”

Ans.

My ideal solution would involve cutting-edge technology, unlimited resources, and a team of experts working collaboratively.

  • Utilizing the latest technology and tools available

  • Hiring a team of top experts in the field

  • Implementing innovative strategies without worrying about cost or time constraints

Add your answer
right arrow

Q191. Design a ArrayList that supprorts all the existing funtions of a list plus getMax functionality also.

Ans.

Design an ArrayList with getMax functionality.

  • Create a custom ArrayList class that extends the existing ArrayList class.

  • Add a getMax() method that returns the maximum value in the list.

  • Override the add() method to keep track of the maximum value in the list.

  • Update the maximum value whenever an element is added or removed from the list.

Add your answer
right arrow

Q192. what is mean by indexing in database

Ans.

Indexing in database is a way to optimize search queries by creating a data structure that allows for faster retrieval of data.

  • Indexing involves creating a separate table that contains the indexed columns and their corresponding row locations.

  • Indexes can be created on one or multiple columns.

  • Indexes can be clustered or non-clustered.

  • Examples of indexing include primary keys, foreign keys, and unique constraints.

Add your answer
right arrow

Q193. Puzzle on measuring exactly half a glass of water

Ans.

Fill the glass to the brim, then pour out exactly half.

  • Fill the glass completely with water

  • Pour the water into another container until the glass is half full

  • Pour the remaining water back into the glass

Add your answer
right arrow

Q194. Write program for internal implementation of hash map

Ans.

Program for internal implementation of hash map

  • Define a hash function to map keys to indices in an array

  • Create an array of linked lists to handle collisions

  • Implement methods for adding, removing, and retrieving key-value pairs

  • Consider resizing the array when it becomes too full

  • Handle edge cases such as null keys or values

Add your answer
right arrow

Q195. Longest Palindrom in a string in O(n)

Ans.

Find the longest palindrome in a given string in linear time complexity.

  • Use Manacher's algorithm to find the longest palindrome in a string in O(n) time complexity.

  • The algorithm involves preprocessing the string to add special characters to handle even and odd length palindromes.

  • Then, it uses a combination of dynamic programming and symmetry properties to find the longest palindrome.

  • For example, in the string 'babad', the longest palindrome is 'bab'.

Add your answer
right arrow

Q196. Create a dropdown(HTML Select tag) custom component in react.

Ans.

Creating a custom dropdown component in React using HTML Select tag.

  • Create a new component and import React

  • Use the HTML Select tag to create the dropdown

  • Use the map function to loop through the array of strings and create the options

  • Add an onChange event to handle the selection and update the state

  • Pass the array of strings as props to the component

Add your answer
right arrow

Q197. Js Code/React component to create a folder and file structure

Ans.

Use Node.js fs module to create folder and file structure in React component

  • Require fs module in React component

  • Use fs.mkdirSync() method to create folder

  • Use fs.writeFileSync() method to create file

  • Use path.join() method to join folder and file paths

  • Handle errors using try-catch block

Add your answer
right arrow

Q198. What are internal working of has set

Ans.

HashSet is a collection that stores unique elements by using a hash table.

  • Elements are stored based on their hash code

  • Uses hashCode() and equals() methods to check for duplicates

  • Does not maintain insertion order

  • Allows null values

  • Example: HashSet set = new HashSet<>(); set.add("apple"); set.add("banana");

Add your answer
right arrow

Q199. What do you know about VLOOKUP and PivotTables in Microsoft Excel?

Ans.

VLOOKUP and PivotTables are powerful tools in Microsoft Excel for data analysis and manipulation.

  • VLOOKUP is used to search for a value in a table and return a corresponding value from another column.

  • PivotTables are used to summarize, analyze, explore, and present data in a visually appealing way.

  • VLOOKUP requires a lookup value, table array, column index number, and optional range lookup parameter.

  • PivotTables allow you to quickly group and summarize large amounts of data.

  • Both ...read more

Add your answer
right arrow

Q200. How do you plan to generate leads and convert them into successful deals?

Ans.

I plan to generate leads through targeted marketing campaigns, networking events, and referrals, and convert them into successful deals by building strong relationships and providing tailored solutions.

  • Utilize targeted marketing campaigns to reach potential leads

  • Attend networking events to connect with potential clients

  • Leverage referrals from satisfied customers or business partners

  • Build strong relationships with leads through personalized communication

  • Provide tailored soluti...read more

Add your answer
right arrow
Previous
1
2
3
4
5
Next
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at Paytm

based on 927 interviews
Interview experience
4.0
Good
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

Ernst & Young Logo
3.4
 • 653 Interview Questions
Coforge Logo
3.3
 • 414 Interview Questions
Bharti Airtel Logo
4.0
 • 376 Interview Questions
Thermax Limited Logo
4.1
 • 217 Interview Questions
DE Shaw Logo
3.8
 • 181 Interview Questions
Bandhan Bank Logo
3.7
 • 155 Interview Questions
View all
Recently Viewed
INTERVIEWS
PayPal
No Interviews
LIST OF COMPANIES
Dhani Healthcare
Locations
INTERVIEWS
Fiserv
No Interviews
INTERVIEWS
Morningstar
100 top interview questions
INTERVIEWS
Visa
No Interviews
INTERVIEWS
Paytm
No Interviews
REVIEWS
Wipro
No Reviews
DESIGNATION
LIST OF COMPANIES
PayU Payments
Locations
SALARIES
DXC Technology
Top Paytm Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter