Filter interviews by
I appeared for an interview before Feb 2016.
A circular linked list is a linked list where the last node points back to the first node, forming a loop.
Create a Node class with data and next pointer
Initialize the head and tail pointers to null
When adding a node, if the list is empty, set head and tail to the new node
If the list is not empty, set the next pointer of the tail to the new node and update the tail
To traverse the circular linked list, start from the hea...
To create a singleton class in a multi-threaded environment, we can use double-checked locking or synchronized block.
Use double-checked locking to minimize the use of synchronization and improve performance.
In double-checked locking, check if the instance is null, then synchronize the block and create the instance.
Use volatile keyword to ensure visibility of the instance across threads.
Alternatively, use synchronized b...
The wait method in the Object class is used for inter-thread communication and synchronization.
wait() is used to make a thread wait until another thread notifies it.
It is used in multi-threaded applications to coordinate the execution of threads.
wait() releases the lock held by the current thread, allowing other threads to acquire it.
It is typically used in conjunction with notify() and notifyAll() methods.
Example: wai...
No, generics are not limited to collections.
Generics can be used with any type of class or interface, not just collections.
They provide type safety and allow for code reusability.
For example, generics can be used with classes like ArrayList, LinkedList, HashMap, etc.
They can also be used with interfaces like Comparable, Iterator, etc.
RDBMS is a relational database management system that uses structured data, while NoSQL is a non-relational database that uses unstructured data.
RDBMS stores data in tables with predefined schemas, while NoSQL stores data in various formats like key-value, document, columnar, or graph.
RDBMS supports ACID (Atomicity, Consistency, Isolation, Durability) properties, while NoSQL sacrifices some of these properties for scal...
Normalization is the process of organizing data in a database to eliminate redundancy and improve data integrity.
Normalization helps in reducing data redundancy by breaking down a database into multiple tables.
It ensures that each table has a single purpose and avoids data duplication.
Normalization follows a set of rules called normal forms, such as First Normal Form (1NF), Second Normal Form (2NF), etc.
By eliminating ...
HashMap is an unordered collection while LinkedHashMap maintains insertion order.
HashMap uses hash table to store key-value pairs.
LinkedHashMap uses doubly-linked list to maintain the insertion order.
HashMap provides faster access and retrieval time complexity.
LinkedHashMap provides predictable iteration order based on insertion order.
Example: HashMap - {1=A, 2=B, 3=C}, LinkedHashMap - {1=A, 2=B, 3=C}
An immutable class in Java is a class whose state cannot be modified after it is created.
Declare the class as final to prevent inheritance
Declare all fields as private and final
Do not provide any setter methods
Ensure that any mutable objects within the class are not accessible or modifiable
Provide only getter methods to access the fields
If a field is mutable, return a copy of it instead of the original object
I applied via Referral and was interviewed before Nov 2020. There were 3 interview rounds.
I appeared for an interview in Sep 2016.
I applied via Naukri.com and was interviewed before Jan 2020. There were 3 interview rounds.
EV HV architecture consists of battery, motor, inverter, and controller.
EV HV architecture is responsible for converting DC power from the battery to AC power for the motor.
Major components include battery, motor, inverter, and controller.
Battery stores energy and provides power to the motor.
Motor converts electrical energy into mechanical energy to drive the wheels.
Inverter converts DC power from the battery to AC pow...
I applied via WorkIndia and was interviewed before Nov 2021. There were 3 interview rounds.
Computer hardware work marketing manager
Static keyword is used in programming to declare variables, methods, or classes that belong to the class itself rather than instances of the class.
Static variables are shared among all instances of a class
Static methods can be called without creating an instance of the class
Static classes cannot be instantiated and are used for grouping related methods or constants
Static keyword is also used in C to declare functions t
I appeared for an interview in Dec 2020.
Round duration - 70 Minutes
Round difficulty - Medium
There were 5 people in the zoom meet, including me. Rest all 4 were interviewers, 3 from India and 1 from the United Kingdom.
They started with my introduction and then moved on to the questions from my resume, starting with my internship at Samsung Bangalore and then projects.
Then another interviewer asked about my weakness and strength. Then comes the turn of coding questions.
Starting with finding the minimum element in O(1) time, rotating the 2-D array by 90 degrees, OOPS questions were also asked like- polymorphism, abstraction, virtual class. Some OS questions were- cache, paging algorithms.
Then come my POR and other activities.
You are provided with an array of integers ARR
of size N
and an integer K
. Your task is to find and return the K
-th smallest value present in the array. All elements...
Find the K-th smallest element in an array of distinct integers.
Sort the array and return the element at index K-1.
Use a min-heap to find the K-th smallest element efficiently.
Implement quickselect algorithm for optimal performance.
You are provided with a square matrix of non-negative integers of size 'N x N'
. The task is to rotate this matrix by 90 degrees in an anti-clockwise directi...
Rotate a square matrix by 90 degrees anti-clockwise without using extra space.
Iterate through each layer of the matrix from outer to inner layers
Swap elements in groups of 4 to rotate the matrix in place
Handle odd-sized matrices separately by adjusting the loop boundaries
Page replacement algorithms are used in operating systems to decide which page to replace when a new page needs to be brought in.
FIFO (First In, First Out) - replaces the oldest page in memory
LRU (Least Recently Used) - replaces the page that has not been used for the longest time
LFU (Least Frequently Used) - replaces the page that has been used the least number of times
Optimal - replaces the page that will not be used
Tip 1 : Practice GFG Must Do section, solve at least 5 Questions daily
Tip 2 : Start talking to new people regarding technology to remove hesitation at the time of the interview.
Tip 3 : Be in contact with a senior already working in that company, ask them regarding previous experience and new project the company is working on.
Tip 4 : Once you are done with GFG must do questions, now complete leetcode sorting by your target company.
Tip 5 : For core subjects refer to gate smashers and knowledge gate videos on youtube.
Tip 1 : Try to modify your resume according to the company you are applying for, for this read their Job Description provided to you.
Tip 2 : Mention no more than 3 projects and 1,2 internships.
Tip 3 : Divide your skills into beginner, intermediate and hard sections, otherwise don't mention too many skills.
Tip 4 : Don't mention to many Position Of Responsibilities( at max 2-3).
I applied via LinkedIn and was interviewed in Sep 2021. There was 1 interview round.
DSA is important nowadays
Need to have good communication skill
I applied via Referral and was interviewed before Dec 2023. There were 2 interview rounds.
A take home assignment
Software Engineer
95
salaries
| ₹7 L/yr - ₹20.4 L/yr |
Business Process Executive
83
salaries
| ₹2.8 L/yr - ₹5.2 L/yr |
Senior Business Process Executive
68
salaries
| ₹3.8 L/yr - ₹6.6 L/yr |
Senior Software Engineer
49
salaries
| ₹13.8 L/yr - ₹26.8 L/yr |
Business Process Associate
21
salaries
| ₹2.8 L/yr - ₹4.9 L/yr |
Plastic Omnium
Kataria Automobiles
Jaguar Land Rover
Hilex