Filter interviews by
I applied via Referral and was interviewed before Oct 2022. There were 3 interview rounds.
How to sort a very large array of numbers ?
hint: merge sort
Use dynamic programming to find the longest increasing decreasing subsequence in an array.
Use dynamic programming to keep track of the length of the longest increasing subsequence ending at each index.
Similarly, keep track of the length of the longest decreasing subsequence starting at each index.
Combine the two to find the longest increasing decreasing subsequence.
Top trending discussions
I was interviewed in Nov 2024.
posted on 30 May 2024
I was interviewed in Apr 2024.
posted on 23 Feb 2024
I applied via Company Website and was interviewed in Aug 2023. There was 1 interview round.
I applied via Approached by Company and was interviewed in Apr 2024. There were 3 interview rounds.
Singleton pattern ensures a class has only one instance and provides a global point of access to it.
Ensures a class has only one instance by providing a global access point to it.
Uses a private constructor to restrict instantiation of the class.
Provides a static method to access the singleton instance.
Commonly used in scenarios where only one instance of a class is needed, such as database connections or logging.
Exampl...
POJO is a Plain Old Java Object with private fields and public getters/setters, while a Bean is a Java class with private fields and public zero-argument constructors.
POJO stands for Plain Old Java Object
POJO has private fields and public getters/setters
Bean is a Java class with private fields and public zero-argument constructors
Beans are usually used in Java EE frameworks like Spring for dependency injection
Calculate the product of all elements in an array except for the element itself.
Iterate through the array and calculate the product of all elements except the current element.
Use two separate arrays to store the product of elements to the left and right of the current element.
Multiply the corresponding elements from the left and right arrays to get the final result.
Two objects created - one in the string pool and one in the heap.
String 'a' is created in the string pool, while String 'b' is created in the heap.
String pool is a special area in the heap memory where strings are stored to increase reusability and save memory.
Using 'new' keyword always creates a new object in the heap, even if the content is the same as an existing string in the pool.
Static variables can be accessed from non-static methods using an object reference or by making the variable non-static.
Static variables can be accessed from non-static methods by creating an object of the class containing the static variable.
Alternatively, the static variable can be made non-static to be accessed directly from a non-static method.
Attempting to access a static variable directly from a non-static method
Emulate Producer/Consumer Problem using code
Create a shared buffer between producer and consumer
Use synchronization mechanisms like mutex or semaphore to control access to the buffer
Implement producer and consumer functions to add and remove items from the buffer respectively
Creating a deadlock involves two or more threads waiting for each other to release a resource they need.
Create two threads, each trying to lock two resources in a different order
Ensure that one thread locks resource A first and then tries to lock resource B, while the other thread locks resource B first and then tries to lock resource A
This will result in a situation where each thread is waiting for the other to releas
Implement LRU Cache using a data structure like LinkedHashMap in Java
Use LinkedHashMap to maintain insertion order
Override removeEldestEntry method to limit cache size
Update the access order on get and put operations
Merge and remove duplicates from two sorted arrays without using Collections
Use two pointers to iterate through both arrays simultaneously
Compare elements at each pointer and add the smaller one to the result array
Skip duplicates by checking if the current element is equal to the previous element
Code to start 5 threads in Java
Create a class that implements the Runnable interface
Instantiate 5 objects of the class
Create 5 threads using the objects and start them
Only the original string 'Something' will be garbage collected.
The concat method in Java does not modify the original string, but instead returns a new string with the concatenated value.
In this case, 'a' remains as 'Something' and a new string 'Something New' is created, but not assigned to any variable.
Since the new string is not stored in any variable, it will not be garbage collected.
Code to read a file in Java
Use FileReader and BufferedReader classes to read the file
Handle exceptions using try-catch blocks
Close the file after reading using close() method
Design an circular linked list
Went through the previous projects and asked some design question
I applied via Job Portal and was interviewed in Feb 2024. There were 2 interview rounds.
I had 6 interviews held one after other without sharing feedback and in last they rejected
Multiple window handles allow a browser to interact with multiple windows simultaneously.
Window handles are unique identifiers assigned to each window opened by a browser.
Using multiple window handles, you can switch between different windows, interact with their elements, and perform actions.
Example: driver.getWindowHandles() in Selenium returns a set of window handles for the current session.
I applied via Approached by Company and was interviewed before Mar 2023. There were 3 interview rounds.
It is was a screening test and was given a coding problem to be solved in given time frame.
Also a coding round with a interviewer giving problem statement or situation and we need to understand the same provide solution on that problem. After explaining the solution need to code for the same keeping in mind the space and time complexity for the code. We need to explain each step that we are going to write into the code. Question will be asked based on the code.
Interview experience
based on 2 reviews
Rating in categories
Software Engineer
172
salaries
| ₹7 L/yr - ₹29.5 L/yr |
Senior Software Engineer
139
salaries
| ₹12.6 L/yr - ₹40 L/yr |
Associate Software Engineer
70
salaries
| ₹6 L/yr - ₹16.8 L/yr |
Senior QA Engineer
58
salaries
| ₹13 L/yr - ₹26 L/yr |
Lead Software Engineer
56
salaries
| ₹25 L/yr - ₹51 L/yr |
TCS
Wipro
HCLTech
Tech Mahindra