Filter interviews by
Finding the intersection point of two linked lists.
Traverse both lists and find their lengths.
Move the pointer of the longer list ahead by the difference in lengths.
Now, traverse both lists simultaneously until the pointers meet.
The meeting point is the intersection point.
Inheritance in everyday life is when traits or characteristics are passed down from parents to children.
Inheritance in code allows a class to inherit properties and methods from another class.
In everyday life, children often inherit physical traits, such as eye color or height, from their parents.
In code, a child class can inherit attributes and behaviors from a parent class.
For example, a parent class 'Animal' ca...
To find the height of a tree and its mirror image, we need to traverse the tree and calculate the maximum depth.
Traverse the tree using depth-first search or breadth-first search
Keep track of the maximum depth encountered during traversal
Repeat the traversal process for the mirror image of the tree
Compare the heights of the original tree and its mirror image
Pseudo code for circular queue
A circular queue is a data structure that follows the FIFO (First-In-First-Out) principle.
It uses an array to store the elements and two pointers, front and rear, to keep track of the queue.
When the rear pointer reaches the end of the array, it wraps around to the beginning, creating a circular behavior.
To enqueue an element, check if the queue is full. If not, increment the rear poin...
Retrieve employees under a specific manager in a designated city using SQL query.
Use the SELECT statement to specify the columns you want to retrieve.
Utilize the WHERE clause to filter results based on manager and city.
Example query: SELECT * FROM employees WHERE manager_id = 'xyz' AND city = 'abc';
Ensure the table name and column names match your database schema.
Concatenation of linked lists is the process of combining two or more linked lists into a single linked list.
Create a new linked list to store the concatenated result.
Traverse the first linked list and add each node to the new linked list.
Traverse the second linked list and add each node to the new linked list.
The last node of the first linked list should point to the head of the second linked list.
Return the head...
I appeared for an interview in Oct 2016.
Pseudo code for circular queue
A circular queue is a data structure that follows the FIFO (First-In-First-Out) principle.
It uses an array to store the elements and two pointers, front and rear, to keep track of the queue.
When the rear pointer reaches the end of the array, it wraps around to the beginning, creating a circular behavior.
To enqueue an element, check if the queue is full. If not, increment the rear pointer a...
Concatenation of linked lists is the process of combining two or more linked lists into a single linked list.
Create a new linked list to store the concatenated result.
Traverse the first linked list and add each node to the new linked list.
Traverse the second linked list and add each node to the new linked list.
The last node of the first linked list should point to the head of the second linked list.
Return the head of t...
Finding the intersection point of two linked lists.
Traverse both lists and find their lengths.
Move the pointer of the longer list ahead by the difference in lengths.
Now, traverse both lists simultaneously until the pointers meet.
The meeting point is the intersection point.
Retrieve employees under a specific manager in a designated city using SQL query.
Use the SELECT statement to specify the columns you want to retrieve.
Utilize the WHERE clause to filter results based on manager and city.
Example query: SELECT * FROM employees WHERE manager_id = 'xyz' AND city = 'abc';
Ensure the table name and column names match your database schema.
To find the height of a tree and its mirror image, we need to traverse the tree and calculate the maximum depth.
Traverse the tree using depth-first search or breadth-first search
Keep track of the maximum depth encountered during traversal
Repeat the traversal process for the mirror image of the tree
Compare the heights of the original tree and its mirror image
Inheritance in everyday life is when traits or characteristics are passed down from parents to children.
Inheritance in code allows a class to inherit properties and methods from another class.
In everyday life, children often inherit physical traits, such as eye color or height, from their parents.
In code, a child class can inherit attributes and behaviors from a parent class.
For example, a parent class 'Animal' can hav...
I liked the company's innovative projects, supportive team, and positive work culture.
Innovative projects: I was impressed by the company's focus on cutting-edge technologies and solutions.
Supportive team: Everyone I met during the interviews was friendly, helpful, and passionate about their work.
Positive work culture: The company's emphasis on work-life balance and professional development opportunities stood out to m...
The company specializes in developing software solutions for various industries.
Specializes in developing software solutions
Works with clients from different industries
Focuses on creating innovative and efficient software products
My strengths include problem-solving skills and attention to detail. My weaknesses include public speaking and time management.
Strengths: problem-solving skills
Strengths: attention to detail
Weaknesses: public speaking
Weaknesses: time management
Yes, coding is my passion as I enjoy problem-solving and creating innovative solutions through programming.
I find joy in tackling complex coding challenges
I am constantly learning new technologies and improving my coding skills
I have personal projects where I apply coding to solve real-world problems
I am willing to work here long-term and grow with the company. My future plans include gaining more experience and taking on more responsibilities.
I am committed to working here for the foreseeable future
I am eager to learn and grow within the company
I hope to take on more responsibilities and advance in my career
My hobbies include playing guitar, hiking, and reading science fiction novels.
Playing guitar: I enjoy learning new songs and practicing different techniques.
Hiking: I love exploring nature trails and challenging myself with long hikes.
Reading science fiction novels: I find it fascinating to escape into futuristic worlds and explore complex ideas.
Top trending discussions
posted on 9 May 2017
I appeared for an interview before May 2016.
posted on 12 Apr 2023
I applied via Recruitment Consulltant and was interviewed before Apr 2022. There were 3 interview rounds.
25 MCQ questions online with time limit
Create webapp . Frontend, Backend , data encryption
posted on 12 Sep 2021
I applied via Recruitment Consultant and was interviewed in Mar 2021. There were 4 interview rounds.
I applied via Naukri.com and was interviewed in Mar 2023. There were 2 interview rounds.
OOPs concepts in Java include inheritance, polymorphism, encapsulation, and abstraction.
Inheritance allows a subclass to inherit properties and methods from a superclass.
Polymorphism allows objects to take on multiple forms and behave differently based on their context.
Encapsulation hides the implementation details of an object and only exposes necessary information.
Abstraction allows for the creation of abstract class...
Interfaces define contracts for behavior, while inheritance allows for code reuse and polymorphism.
Interfaces allow for loose coupling and abstraction, enabling multiple implementations of the same behavior.
Inheritance allows for code reuse and extension of existing classes, reducing code duplication.
Polymorphism allows objects of different classes to be treated as if they were of the same class, simplifying code and i...
SQL query for joining tables
Use JOIN keyword to combine two or more tables based on a related column
Specify the columns to be selected using SELECT keyword
Use ON keyword to specify the condition for joining the tables
Different types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL OUTER JOIN
Used Java concepts such as inheritance, polymorphism, and exception handling in my project.
Implemented inheritance to create a base class and derived classes with specific functionalities.
Utilized polymorphism to allow objects of different classes to be treated as if they were of the same class.
Implemented exception handling to handle errors and prevent program crashes.
Used interfaces to define a set of methods that a ...
Overloading is having multiple methods with the same name but different parameters. Overriding is having a method in a subclass with the same name and parameters as a method in the superclass.
Overloading is used to provide different ways to call a method with different parameters
Overriding is used to provide a specific implementation of a method in a subclass
Overloading is resolved at compile-time while overriding is r...
I applied via LinkedIn and was interviewed in Jun 2024. There was 1 interview round.
I use print statements, logging, and debugging tools to identify and fix issues in my code.
I start by reviewing the code and understanding the logic behind it.
I use print statements to check the values of variables at different points in the code.
I utilize logging to track the flow of the program and identify any errors.
I use debugging tools like breakpoints and step-through debugging to pinpoint the exact location of ...
Functional programming focuses on functions and immutability, while object-oriented programming focuses on objects and encapsulation.
Functional programming uses pure functions that do not have side effects.
Object-oriented programming uses objects that encapsulate data and behavior.
In functional programming, data is immutable and functions are first-class citizens.
In object-oriented programming, objects can have state a...
I applied via Walk-in and was interviewed in Jun 2024. There was 1 interview round.
Function to find the first non-repeating character in a string
Create a hashmap to store character frequencies
Iterate through the string to populate the hashmap
Iterate through the string again to find the first non-repeating character
A stack is a data structure that follows the Last In First Out (LIFO) principle, while a queue follows the First In First Out (FIFO) principle.
Stack: Last In First Out (LIFO), used for function calls, undo operations.
Queue: First In First Out (FIFO), used for printing tasks, message queues.
I applied via Recruitment Consulltant and was interviewed in May 2024. There were 3 interview rounds.
It is easy to solve the Aptitude question and some identifying outputs of program.
A class is a blueprint for creating objects in object-oriented programming.
A class defines the properties and behaviors of objects.
An object is an instance of a class.
Example: Class 'Car' can have properties like 'color' and 'model', and behaviors like 'drive' and 'stop'.
Swap two numbers without using temp variable and reverse a string without using built-in functions.
To swap two numbers without using temp variable, use bitwise XOR operation.
To reverse a string without using built-in functions, use two pointers approach.
Example for swapping numbers: a = a ^ b; b = a ^ b; a = a ^ b;
Example for reversing a string: use two pointers to swap characters from start and end of the string.
Now, I am preparing for the third round.
So, I don't know the Coding Question.
I appeared for an interview in May 2025, where I was asked the following questions.
Java is a versatile, object-oriented programming language designed for portability across platforms and ease of use.
Object-Oriented: Java uses objects to represent data and methods, promoting code reusability. Example: Classes and objects.
Platform-Independent: Java code is compiled into bytecode, which can run on any device with a Java Virtual Machine (JVM).
Rich API: Java provides a comprehensive set of libraries for t...
The JVM enables Java applications to run on any device by providing an environment for executing Java bytecode.
Platform Independence: JVM allows Java programs to run on any operating system without modification.
Bytecode Execution: It interprets or compiles Java bytecode into machine code for execution.
Memory Management: JVM handles memory allocation and garbage collection automatically.
Security: It provides a secure ex...
OOP is a programming paradigm based on objects, encapsulating data and behavior, promoting code reusability and modularity.
Encapsulation: Bundling data and methods that operate on the data within one unit (e.g., a class).
Inheritance: Mechanism to create a new class based on an existing class, inheriting its properties (e.g., a 'Dog' class inheriting from an 'Animal' class).
Polymorphism: Ability to present the same inte...
Variables can be categorized based on their scope, lifetime, and data type, impacting how they are used in programming.
1. Local Variables: Defined within a function or block, e.g., 'int x = 10;' inside a function.
2. Global Variables: Accessible throughout the program, e.g., 'int count;' defined outside any function.
3. Static Variables: Retain their value between function calls, e.g., 'static int counter = 0;' in a func...
An interface defines a contract for classes, specifying methods and properties without implementing them.
An interface can contain method signatures and properties but no implementation.
Classes that implement an interface must provide concrete implementations for all its members.
Interfaces support multiple inheritance, allowing a class to implement multiple interfaces.
Example: In Java, 'Runnable' is an interface that re...
Some of the top questions asked at the Haptiq Lab Software Developer Trainee interview -
Software Developer
56
salaries
| ₹3.6 L/yr - ₹14 L/yr |
Senior Software Developer
14
salaries
| ₹8 L/yr - ₹15.4 L/yr |
Associate Technical Leader
12
salaries
| ₹9.6 L/yr - ₹18.2 L/yr |
Software Engineer
10
salaries
| ₹5 L/yr - ₹9.7 L/yr |
Technical Lead
10
salaries
| ₹10.7 L/yr - ₹27 L/yr |
Accel Frontline
Apmosys Technologies
Pitney Bowes
DynPro