i
Clarivate
Filter interviews by
Reversing a linked list involves changing the direction of its pointers to reverse the order of nodes.
1. Start with three pointers: previous (prev), current (curr), and next.
2. Initialize prev as null and curr as the head of the list.
3. Iterate through the list: while curr is not null, do the following:
a. Store the next node: next = curr.next.
b. Reverse the pointer: curr.next = prev.
c. Move prev and curr ...
Reverse alternate words in a given string
Split the string into words
Reverse alternate words using a loop
Join the words back into a string
Use a hashmap to store the frequency of each letter in the given string.
Iterate through the string and update the frequency of each letter in the hashmap.
Return the hashmap containing the frequency of each letter.
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 at the beginning of the array and compare the first two elements. If the first element is greater than the second, swap them.
Continue comparing adjacent elements and swapping them if necessary until the end of the array is reached.
Repeat this process for ...
Polymorphism is the ability of an object to take on many forms.
It allows objects of different classes to be treated as if they were objects of the same class.
It is achieved through method overriding and method overloading.
Example: A parent class Animal can have child classes like Dog, Cat, and Cow. All of them have a common method called 'makeSound', but each of them makes a different sound.
Example: A method can b...
Asynchronous functions in JavaScript allow code to run without blocking other code from executing.
Asynchronous functions use callbacks or promises to handle the result of the function.
They are useful for tasks that may take a long time to complete, such as fetching data from a server.
Examples include setTimeout(), fetch(), and XMLHttpRequest().
Given the stock prices for a certain number of days, represented as an array, determine the maximum profit you can achieve. You may perform as many tran...
The problem involves finding the maximum profit that can be achieved by buying and selling stocks on different days.
Iterate through the array of stock prices and find the local minima and maxima to calculate profit
Keep track of the total profit by adding the differences between consecutive maxima and minima
You can perform multiple transactions, so buy at each local minima and sell at each local maxima
Example: For ...
Abstract classes and interfaces in inheritance allow for defining common behavior and function signatures, while function overloading and overriding enable polymorphism.
Abstract classes are classes that cannot be instantiated and may contain abstract methods that must be implemented by subclasses.
Interfaces are similar to abstract classes but can only contain method signatures and constants, with no method impleme...
It was set of java problem solving questions
Reversing a linked list involves changing the direction of its pointers to reverse the order of nodes.
1. Start with three pointers: previous (prev), current (curr), and next.
2. Initialize prev as null and curr as the head of the list.
3. Iterate through the list: while curr is not null, do the following:
a. Store the next node: next = curr.next.
b. Reverse the pointer: curr.next = prev.
c. Move prev and curr one s...
Questions on DP and greed algorithms
I applied via Campus Placement and was interviewed in Mar 2024. There was 1 interview round.
C++ about the other day and night
I applied via Campus Placement and was interviewed before Feb 2023. There were 2 interview rounds.
Initial coding test on hacker rank, easy to med level, pretty straight forward, not too difficult
Reverse alternate words in a given string
Split the string into words
Reverse alternate words using a loop
Join the words back into a string
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 at the beginning of the array and compare the first two elements. If the first element is greater than the second, swap them.
Continue comparing adjacent elements and swapping them if necessary until the end of the array is reached.
Repeat this process for each ...
Use a hashmap to store the frequency of each letter in the given string.
Iterate through the string and update the frequency of each letter in the hashmap.
Return the hashmap containing the frequency of each letter.
I appeared for an interview in Mar 2022.
Round duration - 75 minutes
Round difficulty - Medium
Consists of MCQ + 2 coding questions( medium level)
Given the stock prices for a certain number of days, represented as an array, determine the maximum profit you can achieve. You may perform as many tra...
The problem involves finding the maximum profit that can be achieved by buying and selling stocks on different days.
Iterate through the array of stock prices and find the local minima and maxima to calculate profit
Keep track of the total profit by adding the differences between consecutive maxima and minima
You can perform multiple transactions, so buy at each local minima and sell at each local maxima
Example: For price...
Round duration - 60 minutes
Round difficulty - Easy
The round is based on data structures, oops concepts and implementation, OS and DBMS general questions. And Please do not forget to read about scheduling algorithms and ACID properties of RDBMS.
Abstract classes and interfaces in inheritance allow for defining common behavior and function signatures, while function overloading and overriding enable polymorphism.
Abstract classes are classes that cannot be instantiated and may contain abstract methods that must be implemented by subclasses.
Interfaces are similar to abstract classes but can only contain method signatures and constants, with no method implementati...
Tip 1 : Practice some questions (easy level)
Tip 2 : Brush up on the implementation of OOPS concepts.
Tip 3 : Brush up on the queries of MYSQL
Tip 1 : Hands on experience in OOPS
Tip 2 : Hands on experience in MYSQL
I applied via Indeed and was interviewed before Aug 2021. There were 2 interview rounds.
It's on hacker rank. Be prepared for two coding questions.
Medium level coding
I applied via Campus Placement and was interviewed in Jul 2021. There were 3 interview rounds.
Top trending discussions
based on 5 interview experiences
Difficulty level
Duration
based on 13 reviews
Rating in categories
Senior Software Engineer
229
salaries
| ₹13 L/yr - ₹22 L/yr |
Software Engineer
211
salaries
| ₹8.8 L/yr - ₹15 L/yr |
IP Analyst
185
salaries
| ₹3.1 L/yr - ₹6.1 L/yr |
Associate Content Analyst
152
salaries
| ₹2.2 L/yr - ₹7.1 L/yr |
Associate Software Engineer
138
salaries
| ₹6 L/yr - ₹11 L/yr |
Crisil
S&P Global
Access Healthcare
Acuity Knowledge Partners