i
SurveyMonkey
Work with us
Filter interviews by
I applied via Company Website and was interviewed in Oct 2024. There was 1 interview round.
Python code to calculate the sum of elements in a list
Use the built-in sum() function in Python to calculate the sum of elements in a list
Create a list of numbers and pass it as an argument to the sum() function
Example: numbers = [1, 2, 3, 4, 5] total = sum(numbers) print(total)
Debugging Terraform code involves identifying errors, validating configurations, and optimizing resource management.
Use 'terraform plan' to preview changes and identify potential issues before applying.
Check for syntax errors in .tf files using 'terraform validate'.
Utilize 'terraform console' to inspect resource states and outputs interactively.
Review logs and error messages for specific line numbers and context.
Implem...
Top trending discussions
posted on 24 Apr 2025
I appeared for an interview in Mar 2025, where I was asked the following questions.
ACID stands for Atomicity, Consistency, Isolation, and Durability in databases.
Atomicity ensures that all operations in a transaction are completed successfully or none at all.
Consistency ensures that the database remains in a consistent state before and after the transaction.
Isolation ensures that multiple transactions can be executed concurrently without affecting each other.
Durability ensures that once a transaction...
Checked exceptions are checked at compile time while unchecked exceptions are not checked at compile time.
Checked exceptions are subclasses of Exception class except RuntimeException and its subclasses.
Unchecked exceptions are subclasses of RuntimeException and Error classes.
Checked exceptions must be caught or declared in the method signature using 'throws' keyword.
Unchecked exceptions do not need to be caught or decl...
To find the minimum difference between any two integers of 2 sorted lists, iterate through both lists simultaneously and keep track of the minimum difference.
Iterate through both sorted lists simultaneously
Keep track of the minimum difference found so far
Update the minimum difference if a smaller difference is found
Implement boolean canConstruct(String targetString, String[] dict) which returns true if we can construct the targetString by concatenating the words given in the dictionary
Implement a key value store for storing and retrieving data efficiently.
Use a hash table or a balanced tree data structure to store key-value pairs.
Implement functions for inserting, updating, deleting, and retrieving key-value pairs.
Consider implementing features like transactions, concurrency control, and data persistence.
Example: Implement a simple key value store using a hash table in Python.
I applied via Approached by Company and was interviewed before Nov 2022. There were 3 interview rounds.
Brush up on DS and Algorithms
posted on 24 Aug 2024
I applied via Referral and was interviewed before Aug 2023. There were 4 interview rounds.
Find the longest subsequence in an array with sum zero.
Iterate through the array and keep track of the running sum.
Store the running sum in a hashmap along with the index.
If the same sum is encountered again, the subsequence between the two indices has a sum of zero.
The diameter of a tree is the longest path between two leaf nodes in the tree.
Calculate the longest path between two leaf nodes in the tree
This can be done by finding the height of the left and right subtrees and adding them together
The diameter of the tree is the maximum of either the diameter of the left subtree, the diameter of the right subtree, or the sum of the heights of the left and right subtrees
Design a hotel booking system for managing reservations and availability.
Use a database to store hotel information, room availability, and reservations.
Implement user authentication and authorization for booking.
Include a search feature for users to find available rooms based on their criteria.
Allow users to make reservations, modify or cancel them.
Send confirmation emails to users after successful bookings.
Divide one big integer by another
posted on 19 Dec 2023
I applied via LinkedIn and was interviewed in Nov 2023. There were 2 interview rounds.
Create subarrays with sum = 0 from given array of integers.
Iterate through the array and keep track of the running sum.
Store the running sum in a hashmap and check if the current sum - any previous sum equals 0.
If yes, then the subarray between those two indices has a sum of 0.
The left view of a binary tree is the set of nodes visible when the tree is viewed from the left side.
Traverse the tree in a level order manner and keep track of the first node at each level.
Use a queue to store nodes at each level and update the left view nodes accordingly.
Example: For a binary tree with root node 1, left child 2, and right child 3, the left view would be [1, 2].
posted on 12 Mar 2024
I applied via Company Website and was interviewed before Mar 2023. There were 4 interview rounds.
Solve sudoku, row and columns should have 1-9 numbers and the numbers shouldnt repeat
Design a parking lot system with features like parking, retrieving, and tracking available spots.
Create a ParkingLot class with attributes like total number of spots, available spots, and a list of parked vehicles.
Implement methods for parking a vehicle, retrieving a vehicle, and tracking available spots.
Use data structures like arrays or lists to manage parked vehicles and available spots.
Consider implementing feature...
I applied via LinkedIn and was interviewed in Nov 2024. There was 1 interview round.
I appeared for an interview in Nov 2024, where I was asked the following questions.
To add an element to a complete binary tree, insert it at the next available position, maintaining the complete structure.
1. Identify the next available position in the tree, which is the leftmost empty spot at the last level.
2. Use a queue or array to keep track of nodes for level-order traversal to find the insertion point.
3. Insert the new element as a child of the last node in the queue or array.
4. If the last leve...
based on 1 interview experience
Difficulty level
Duration
Senior Software Engineer
4
salaries
| ₹29 L/yr - ₹40 L/yr |
Senior Software Engineer 1
3
salaries
| ₹34 L/yr - ₹39.4 L/yr |
Amazon
Uber
Fareportal
OLX