i
Innovaccer
Filter interviews by
Data Structures and Algorithms
I was interviewed in Aug 2023.
Below average logical Javascript and React questions.
Top trending discussions
posted on 13 Jan 2024
Object-oriented programming concepts in Java
Encapsulation: bundling data and methods together
Inheritance: creating new classes from existing ones
Polymorphism: using a single interface to represent different types
Abstraction: hiding implementation details and providing a simplified view
Encapsulation example: using private variables and public methods
Inheritance example: creating a subclass that inherits properties and m...
posted on 5 Jul 2024
Use a combination of hash table and linked list to achieve O(1) operations for a Hash Map.
Use a hash table to store key-value pairs and a linked list to handle collisions.
Implement a hash function to map keys to indices in the hash table.
For each key, calculate the hash value and store the corresponding value in the hash table at that index.
To handle collisions, use separate chaining with linked lists at each index of ...
posted on 24 Apr 2024
I applied via campus placement at Model Engineering College, Kochi and was interviewed before Apr 2023. There were 2 interview rounds.
Mental and Verbal aptitude - 1 hour
posted on 9 Jun 2023
I applied via Approached by Company and was interviewed before Jun 2022. There were 2 interview rounds.
Find the maximum profit that can be made by buying and selling stocks in an array.
Use a greedy approach to find the maximum profit by keeping track of the minimum price and updating the maximum profit.
Iterate through the array and calculate the difference between each element and the minimum price seen so far.
Return the maximum profit obtained from the array.
Reverse each word in a given array of strings
Iterate through each string in the array
Split each string into individual words
Reverse each word and join them back together
Return the modified array of strings
I applied via Referral and was interviewed in Sep 2024. There were 2 interview rounds.
Use dynamic programming to find the longest palindromic substring in a given string.
Iterate through the string and expand around each character to find palindromes.
Store the length of the longest palindrome found so far.
Return the substring based on the start and end indices of the longest palindrome.
To serialize and deserialize a tree, use a recursive approach to traverse the tree and store the data in a suitable format.
Use pre-order traversal to serialize the tree by storing the node values in a list or string.
For deserialization, reconstruct the tree by recursively building nodes from the serialized data.
Consider using JSON or XML format for serialization to easily store and retrieve tree structure.
Use regex library to match given regex with string.
Use a regex library like re in Python to match the given regex with the string.
Check if the regex matches the string using the library functions.
Handle cases where the regex contains special characters like . and * appropriately.
Throttling is a technique used to control the rate of requests sent to a server.
Throttling helps prevent server overload by limiting the number of requests processed at a time.
Implementing a throttle function involves setting a maximum request rate and delaying excess requests.
Example: Implementing a throttle function in a web application to limit the number of API calls made to a third-party service.
Example: Throttlin...
Sort the squares of elements in a sorted array and return the sorted response.
Iterate through the array and square each element.
Store the squared values in a new array.
Sort the new array and return it.
A promise is a commitment to do something in the future, typically used for asynchronous operations in JavaScript.
Promises are used to handle asynchronous operations in JavaScript.
They represent a value that may be available now, in the future, or never.
Promises have three states: pending, fulfilled, or rejected.
Example: new Promise((resolve, reject) => { setTimeout(() => resolve('Done!'), 1000); });
Event loop is a mechanism that allows for asynchronous execution of code by managing the order of events in a single thread.
Event loop continuously checks the call stack for any functions that need to be executed, and processes them in a non-blocking manner.
Different types of queues in event loop include microtask queue (Promise callbacks), macrotask queue (setTimeout, setInterval callbacks), and animation frame queue
Virtual DOM is a lightweight copy of the actual DOM, used to improve performance by minimizing direct manipulation of the real DOM.
Virtual DOM is a concept used in frameworks like React to optimize rendering performance.
Changes are first made to the virtual DOM, which is then compared to the real DOM to identify the minimal updates needed.
This approach reduces the number of actual DOM manipulations, resulting in faster...
I applied via Naukri.com and was interviewed in Dec 2024. There were 2 interview rounds.
Java based questions and few DSA questions
posted on 11 Dec 2024
I applied via LinkedIn and was interviewed in Nov 2024. There were 3 interview rounds.
posted on 29 Nov 2024
1) Finding and removing loop in linked list. 2)find pair of given sum in binary tree
Print the bottom view of a binary tree
Use a map to store the horizontal distance and node value at each level
Perform a level order traversal of the binary tree
Update the map with the node value at each horizontal distance
Print the node values in the map for the bottom view
based on 4 reviews
Rating in categories
Noida
3-5 Yrs
₹ 12-15 LPA
Data Analyst
287
salaries
| ₹5.8 L/yr - ₹17 L/yr |
Senior Data Analyst
167
salaries
| ₹8 L/yr - ₹26.8 L/yr |
Associate Software Engineer
100
salaries
| ₹6 L/yr - ₹8 L/yr |
Data Engineer
69
salaries
| ₹4.6 L/yr - ₹16 L/yr |
Software Development Engineer II
61
salaries
| ₹16 L/yr - ₹33 L/yr |
Practo
Lybrate
Portea Medical
PharmEasy