i
OpenText Technologies
Filter interviews by
Clear (1)
I was interviewed in Jul 2023.
To find the middle element in a linked list, use the slow and fast pointer approach.
Initialize two pointers, slow and fast, both pointing to the head of the linked list.
Move the slow pointer by one step and the fast pointer by two steps until the fast pointer reaches the end of the list.
The element pointed to by the slow pointer at this point is the middle element of the linked list.
OOPS concept is based on four main principles: Encapsulation, Inheritance, Polymorphism, and Abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Inheritance: Allowing a new class to inherit properties and behavior from an existing class.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex implementation details and show
The program uses the Observer design pattern.
The Observer pattern is used to define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
It promotes loose coupling between objects, allowing for easier maintenance and scalability.
Examples of Observer pattern implementation can be seen in event handling systems, such as in GUI frameworks
Top trending discussions
I applied via Walk-in and was interviewed before Dec 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Aug 2020. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before Feb 2020. There were 6 interview rounds.
I applied via Company Website and was interviewed before Feb 2020. There was 1 interview round.
I applied via Campus Placement and was interviewed in Oct 2020. There were 4 interview rounds.
Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.
Start from the first element and compare it with the next element
If the next element is smaller, swap them
Repeat this process for all elements in the array
Continue this process until no more swaps are needed
A program to print all prime numbers
Take input from user for range of numbers
Loop through the range and check if each number is prime
Print the prime numbers
Hashmap is a data structure that stores key-value pairs and allows constant time access to values based on their keys.
Hashmap uses a hash function to map keys to indices in an array.
Collisions can occur when multiple keys map to the same index, which can be resolved using techniques like chaining or open addressing.
Examples of hashmap implementations include Java's HashMap class and Python's dict type.
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows code reuse and promotes code organization.
The existing class is called the parent or superclass, and the new class is called the child or subclass.
The child class inherits all the properties and methods of the parent class and can also add new properties and methods.
For...
I applied via Walk-in and was interviewed in Mar 2021. There was 1 interview round.
I was interviewed in Mar 2021.
based on 1 interview
Interview experience
based on 38 reviews
Rating in categories
Senior Software Engineer
914
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
885
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Software Engineer
368
salaries
| ₹0 L/yr - ₹0 L/yr |
Lead Software Engineer
327
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Developer
192
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Infosys
Wipro
HCLTech