i
Leena AI
Filter interviews by
I applied via Campus Placement and was interviewed in Nov 2021. There were 4 interview rounds.
Binary search has O(log n) time complexity for arrays and O(n) for linked lists.
Binary search is efficient for arrays due to their random access nature.
Linked lists require sequential traversal, making binary search inefficient.
For arrays, the time complexity is O(log n) as the search space is halved with each iteration.
For linked lists, the time complexity is O(n) as all nodes must be visited to find the target.
Binary...
Construct a tree using inorder and postorder traversal lists.
The last element of the postorder list is the root of the tree.
Find the root in the inorder list and split the list into left and right subtrees.
Recursively construct the left and right subtrees using the corresponding sublists.
Return the root node.
Time complexity: O(n^2) in worst case, O(nlogn) on average.
Find depth of binary tree through recursion and iteration
Recursively traverse left and right subtrees and return the maximum depth
Iteratively traverse the tree using a stack or queue and keep track of the depth
Depth of an empty tree is 0
Depth of a tree with only one node is 1
Intersection of two arrays is the common elements present in both arrays.
Sort both arrays and use two pointers to compare elements.
Use a hash set to store elements of one array and check for presence in the other array.
If arrays are already sorted, use binary search to find common elements.
Find the heavier ball from 8 identical balls using a balance weighting machine in least number of tries.
Divide the balls into 3 groups of 3, 3, and 2 balls.
Weigh the first two groups against each other.
If they balance, the heavier ball is in the remaining group of 2 balls.
If one group is heavier, weigh two balls from that group against each other.
If they balance, the heavier ball is the remaining ball.
If one ball is he
Top trending discussions
I applied via Job Fair and was interviewed in May 2024. There was 1 interview round.
Questions trees and graphs.
2 DSA questions Both are from DP
posted on 15 Nov 2024
I applied via Referral and was interviewed in Oct 2024. There was 1 interview round.
Promises in JavaScript are objects representing the eventual completion or failure of an asynchronous operation.
Promises are used to handle asynchronous operations in JavaScript.
They can be in one of three states: pending, fulfilled, or rejected.
Promises can be chained using .then() to handle success and .catch() to handle errors.
posted on 14 May 2024
Event loop in Node.js manages asynchronous operations by executing callback functions when certain events occur.
Event loop is responsible for handling I/O operations, timers, and callbacks in Node.js
It allows Node.js to perform non-blocking operations efficiently
Event loop continuously checks the event queue for new events to execute
I applied via Campus Placement and was interviewed in Mar 2023. There were 4 interview rounds.
Aptitude Test with 1 coding question and 8 other aptitude questions
A zoo management system to track animals, enclosures, staff, and visitor information.
Create classes for animals, enclosures, staff, and visitors
Implement functions for adding, updating, and deleting records
Include features for scheduling feeding times, cleaning enclosures, and managing staff shifts
Standard DSA questions
posted on 10 Jul 2023
I applied via Recruitment Consulltant and was interviewed in Jan 2023. There were 4 interview rounds.
KWP2000 and UDS are communication protocols used in automotive diagnostics.
KWP2000 is used for diagnostics and flashing of electronic control units (ECUs) in older vehicles.
UDS (Unified Diagnostic Services) is a modern protocol used for diagnostics and flashing of ECUs in newer vehicles.
Both protocols allow for communication between a diagnostic tool and the vehicle's ECUs to read and clear fault codes, perform tests, ...
There are mainly three types of ECUs: Engine Control Unit (ECU), Transmission Control Unit (TCU), and Body Control Module (BCM).
Engine Control Unit (ECU) - controls the engine functions such as fuel injection, ignition timing, and emissions.
Transmission Control Unit (TCU) - manages the transmission system, including gear shifting and torque converter lockup.
Body Control Module (BCM) - oversees various body functions li...
Online and offline in CANoe refer to the modes of communication with the CAN bus.
Online mode allows real-time interaction with the CAN bus, sending and receiving messages.
Offline mode allows analysis of previously recorded CAN bus data without real-time interaction.
Online mode is used for testing and debugging live systems, while offline mode is used for post-analysis and simulation.
Examples: Online mode is used to mon...
posted on 15 Aug 2023
I appeared for an interview before Aug 2022.
Some of the top questions asked at the Leena AI Software Development Engineer interview -
Chat Bot Developer
35
salaries
| ₹7.2 L/yr - ₹19.3 L/yr |
Customer Success Manager
21
salaries
| ₹7 L/yr - ₹26 L/yr |
Senior Software Engineer
16
salaries
| ₹18.9 L/yr - ₹55 L/yr |
Software Engineer
15
salaries
| ₹7 L/yr - ₹19.1 L/yr |
Sales Development Representative
11
salaries
| ₹8 L/yr - ₹17 L/yr |
Vyapar
Classplus
Fleetx.io
KEKA TECHNOLOGIES