Filter interviews by
I applied via Company Website and was interviewed before Mar 2023. There were 2 interview rounds.
I applied via Naukri.com and was interviewed before May 2020. There were 3 interview rounds.
I applied via Campus Placement and was interviewed in Oct 2024. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Mar 2024. There was 1 interview round.
I applied via LinkedIn and was interviewed in Apr 2021. There were 4 interview rounds.
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.
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.
TreeSet is a data structure that stores unique elements in sorted order.
TreeSet is implemented using a Red-Black tree
It provides O(log n) time complexity for basic operations like add, remove, and contains
It also provides methods like first(), last(), headSet(), tailSet(), and subSet()
TreeSet can be used to implement priority queues and sorting algorithms
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.
I applied via LinkedIn and was interviewed in Mar 2024. There were 2 interview rounds.
based on 1 interview
Interview experience
Software Engineer
5
salaries
| ₹0 L/yr - ₹0 L/yr |
Assistant Manager
3
salaries
| ₹0 L/yr - ₹0 L/yr |
CTO
3
salaries
| ₹0 L/yr - ₹0 L/yr |
Chief Staff
3
salaries
| ₹0 L/yr - ₹0 L/yr |
Flipkart
Amazon
Snapdeal
Paytm