Filter interviews by
Top trending discussions
I applied via Recruitment Consultant and was interviewed in May 2021. There were 4 interview rounds.
An immutable class is a class whose instances cannot be modified after creation.
Make all fields private and final
Don't provide any setter methods
Ensure that any mutable objects passed to the constructor are defensively copied
Make the class final so that it cannot be subclassed
Singleton pattern ensures only one instance of a class is created and provides a global point of access to it.
Create a private constructor to prevent direct instantiation of the class.
Create a private static instance of the class.
Create a public static method to access the instance, and create the instance if it doesn't exist.
Ensure thread safety by using synchronized keyword or double-checked locking.
Vector is synchronized and ArrayList is not. Vector is thread-safe and ArrayList is not.
Vector is a legacy class and ArrayList is a part of the Java Collection Framework.
Vector is synchronized which means only one thread can access it at a time, while ArrayList is not.
Vector is thread-safe which means it can be used in a multi-threaded environment, while ArrayList is not.
Vector is slower than ArrayList because of synch...
Create Linked List without using internal library and provide add, delete, find functionality.
Create a Node class with data and next pointer
Create a LinkedList class with head pointer and methods to add, delete, and find nodes
Use a loop to traverse the list and perform operations
Handle edge cases such as adding to an empty list or deleting the head node
The current system follows a microservices architecture.
The system is divided into multiple independent services.
Each service has its own database and communicates with other services through APIs.
The architecture allows for scalability and flexibility.
Examples of microservices used in the system include user authentication, payment processing, and inventory management.
Find the total no of islands in a 2D matrix.
Use DFS or BFS to traverse the matrix.
Mark visited cells to avoid repetition.
Count the number of islands found.
Loop detection in a linked list.
Use two pointers, one moving at twice the speed of the other.
If there is a loop, the faster pointer will eventually catch up to the slower one.
If there is no loop, the faster pointer will reach the end of the list.
I applied via Approached by Company and was interviewed before Jun 2021. There were 2 interview rounds.
Frameworks provide structure and pre-built components for software development, but can also limit flexibility and require learning curve.
Advantage: Provides structure and pre-built components for faster development
Advantage: Can improve code quality and maintainability
Disadvantage: Can limit flexibility and customization
Disadvantage: Requires learning curve and potential dependency issues
Example: ReactJS provides a fr...
Oops stands for Object-Oriented Programming. It is a programming paradigm that uses objects to represent real-world entities.
Advantages: code reusability, modularity, encapsulation, inheritance, polymorphism
Disadvantages: complexity, steep learning curve, performance overhead
Example: creating a class 'Car' with properties like 'make', 'model', and 'year', and methods like 'start_engine' and 'stop_engine'
It is simple MCQ machine test and test result is generated then forwarded for First round which is telephonic round.
This round is on Zoom and will try to check your coding knowledge. Like your role in existing project in current company etc. Totally project related
I applied via Naukri.com and was interviewed before Dec 2022. There were 3 interview rounds.
You have to do programming test. This is based on logical question.
I applied via Naukri.com and was interviewed in Jul 2021. There was 1 interview round.
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
Find the second best player among n players.
Sort the players based on their scores and pick the second highest score.
If scores are not available, find the second highest rank or position.
If there are ties for first place, the second best player may be the third or fourth best player.
If there are ties for second place, there may not be a clear second best player.
I applied via Naukri.com and was interviewed in Oct 2021. There were 3 interview rounds.
Transpose of a square matrix
Iterate through each row and column of the matrix
Swap the elements at (i,j) and (j,i) positions
Return the transposed matrix
Rotate a 2D matrix 90' anticlockwise
Transpose the matrix
Reverse each row of the transposed matrix
Alternatively, swap elements in each row with their corresponding elements in the opposite row
Time complexity: O(n^2), Space complexity: O(1)
Streams in Java are a sequence of elements that can be processed in parallel or sequentially.
Streams are used to perform operations on collections of data.
They can be used to filter, map, reduce, and sort data.
Streams can be processed in parallel to improve performance.
Examples include using streams to filter a list of names or map a list of numbers to their squares.
Lambda expression is a concise way to represent anonymous functions in Java.
Lambda expressions were introduced in Java 8.
They are used to implement functional interfaces.
They reduce the amount of boilerplate code needed for anonymous classes.
Syntax: (parameters) -> expression or (parameters) -> { statements; }
Example: (x, y) -> x + y or (x, y) -> { return x + y; }
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.
Indexing can lead to increased storage requirements and slower write performance.
Indexing can increase the size of the database as additional data structures are created to support the index.
Indexes can slow down write operations as the database must update both the data and the index.
Indexes can become fragmented over time, leading to decreased performance.
Indexes can also lead to increased memory usage and CPU overhe...
I applied via LinkedIn and was interviewed in Jan 2022. There were 4 interview rounds.
I applied via Instahyre and was interviewed in Sep 2021. There were 3 interview rounds.
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
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
I was interviewed in May 2022.
Round duration - 90 Minutes
Round difficulty - Medium
Timing - Flexible, can take any time as per convenience.
Environment was great.
You are given a singly linked list of integers along with a positive integer 'K'. The task is to modify the linked list by reversing every alternate 'K' nodes o...
The task is to modify a singly linked list by reversing every alternate 'K' nodes of the linked list.
Iterate through the linked list in groups of size K, reverse every alternate group
Handle cases where the number of remaining nodes is less than K
Update the pointers accordingly to reverse the nodes in the linked list
Round duration - 60 Minutes
Round difficulty - Easy
Timing - around 12pm
It was a call on Google meet.
Interviewer was friendly
Given a sorted array of distinct integers that has been rotated clockwise by an unknown amount, you need to search for a specified integer in the array. Fo...
Implement a search function to find a specified integer in a rotated sorted array with O(logN) time complexity.
Implement a binary search algorithm to efficiently search for the target integer.
Handle the rotation of the array by finding the pivot point first.
Return the index of the target integer if found, else return -1.
Ensure the time complexity of the search function is O(logN) for each query.
Round duration - 60 Minutes
Round difficulty - Medium
Managerial round. Mostly around system design
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
Tip 1 : Practice is the key to crack any interview. Solve as many questions as you can.
Tip 2 : Learn about the company values.
Tip 1 : Keep it short and concise
Tip 2 : Try to highlight some work or projects that you did outside your work
based on 1 review
Rating in categories
Senior Engineer
71
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
56
salaries
| ₹0 L/yr - ₹0 L/yr |
Assistant Manager
55
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
52
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Member of Technical Staff
45
salaries
| ₹0 L/yr - ₹0 L/yr |
Flipkart
Delhivery
Zomato
Swiggy