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
posted on 10 Jul 2024
I applied via Company Website and was interviewed in Jun 2024. There was 1 interview round.
I applied via AngelList and was interviewed in Sep 2020. There was 1 interview round.
I applied via Campus Placement and was interviewed before Aug 2023. There were 2 interview rounds.
Aptitude of from all topics
First round is the aptitude round - they ask basic to advanced level coding questions
Basic DSA questions, best time to buy and sell stock and its variation
Designing a system for Google Playstore involves creating a platform for users to browse, download, and review apps.
Implement a user-friendly interface for browsing and searching apps
Develop a secure payment system for purchasing apps
Include a review and rating system for users to provide feedback on apps
Ensure scalability to handle a large number of users and apps
Integrate analytics to track app performance and user b
I applied via Referral and was interviewed in Jul 2023. There were 3 interview rounds.
First round was an online test comprising of four different sections. Those were OOPs , Java, Data Interpretation, and Aptitude section. Each section had 12 questions which has to be solved in 11 minutes.
Carbon footprint and ways to achieve
1. which data structure is used to create an editor?
Some of the top questions asked at the Leena AI Software Development Engineer interview -
Chat Bot Developer
35
salaries
| ₹0 L/yr - ₹0 L/yr |
Customer Success Manager
21
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
16
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
15
salaries
| ₹0 L/yr - ₹0 L/yr |
Sales Development Representative
11
salaries
| ₹0 L/yr - ₹0 L/yr |
Jio Haptik
yellow.ai
Engati
Uniphore Software Systems