i
Paytm
Filter interviews by
Search for a target value in a sorted matrix efficiently.
Start from the top right corner and move left or down based on comparison with target value
Utilize the sorted nature of the matrix to eliminate certain rows or columns
Implement binary search for more efficient search in each row or column
HashMap is a data structure that stores key-value pairs and uses hashing to quickly retrieve values based on keys.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to determine the index in the array where it will be stored.
If multiple keys hash to the same index, a collision occurs and the key-value pairs are stored in a linked list at that...
Use Floyd's Tortoise and Hare algorithm to detect cycle in a linked list.
Initialize two pointers, slow and fast, at the head of the linked list.
Move slow pointer by one step and fast pointer by two steps.
If they meet at any point, there is a cycle in the linked list.
MongoDB is a NoSQL database while SQL is a relational database management system.
MongoDB is schema-less, allowing for flexible data models.
SQL databases use structured query language for defining and manipulating data.
MongoDB is better suited for unstructured or semi-structured data, while SQL is better for structured data.
SQL databases are ACID compliant, ensuring data integrity, while MongoDB sacrifices some ACI...
Convert a Binary Search Tree (BST) into a new BST containing only nodes within a given range.
Perform inorder traversal of the original BST and only add nodes within the given range to the new BST.
Recursively call the function on left and right subtrees while checking the node values against the range.
Adjust the pointers of the nodes to form the new BST.
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 situ...
A binary tree is a BST if for every node, left children are smaller and right children are larger than the node.
A BST must satisfy the property: left < node < right for all nodes.
Use a recursive function to check each node against min and max values.
Example: For the tree with root 5, left child 3, right child 7, it is a BST.
Example: For the tree with root 5, left child 7, right child 3, it is NOT a BST.
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
The Lowest Common Ancestor (LCA) of a Binary Search Tree is the node that is the common ancestor of two given nodes.
The LCA of a Binary Search Tree can be found by comparing the values of the two nodes with the current node's value and traversing left or right accordingly.
If one node's value is less than the current node's value and the other node's value is greater, then the current node is the LCA.
If both nodes ...
To find the kth element in a linked list, iterate through the list and return the element at the kth position.
Iterate through the linked list while keeping track of the current position
Return the element when the current position equals k
Handle cases where k is out of bounds or the linked list is empty
1st round was online test with 3 easy-medium leetcode questions
Quick sort is an efficient sorting algorithm that uses a divide-and-conquer approach to sort elements in an array.
1. Choose a 'pivot' element from the array.
2. Partition the array into two sub-arrays: elements less than the pivot and elements greater than the pivot.
3. Recursively apply the above steps to the sub-arrays.
4. Combine the sorted sub-arrays and the pivot to get the final sorted array.
Example: For array [3, 6...
Javascript, nodejs, react qustions
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
I applied via Referral and was interviewed in Jun 2024. There were 3 interview rounds.
Got an hackerRank test link which consists HTML, CSS, JS, React and DSA question with MCQs.
Medium level one coding question
2 questions in DSA on arrays and linked list
LinkedIn List based problems involve manipulating linked lists to solve various coding challenges.
Implement common linked list operations like insertion, deletion, and traversal.
Solve problems involving reversing a linked list, detecting cycles, or finding the intersection point of two linked lists.
Use techniques like two pointers, recursion, or hash tables to optimize solutions.
Rotate a linked list by k positions
Traverse the linked list to find the length and the last node
Connect the last node to the head to make it a circular linked list
Traverse again to find the new tail node at position length - k % length
Set the new head as the next node of the new tail and update the new tail's next to null
To find the kth element in a linked list, iterate through the list and return the element at the kth position.
Iterate through the linked list while keeping track of the current position
Return the element when the current position equals k
Handle cases where k is out of bounds or the linked list is empty
Level order traversal of a binary tree with alternate order
Use a queue to perform level order traversal
Alternate the order of nodes at each level
Example: For a binary tree with nodes 1, 2, 3, 4, 5, the output could be ['1', '3 2', '4 5']
Top trending discussions
Some of the top questions asked at the Paytm Software Engineer interview -
The duration of Paytm Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 40 interview experiences
Difficulty level
Duration
based on 191 reviews
Rating in categories
Team Lead
2k
salaries
| ₹2 L/yr - ₹9.6 L/yr |
Senior Software Engineer
1.5k
salaries
| ₹11 L/yr - ₹38 L/yr |
Software Engineer
1.4k
salaries
| ₹10 L/yr - ₹17.5 L/yr |
Sales Executive
985
salaries
| ₹0.9 L/yr - ₹5.3 L/yr |
Senior Associate
958
salaries
| ₹2.2 L/yr - ₹9.1 L/yr |
BharatPe
Zerodha
Razorpay
Mobikwik