Ques1: There is a big file of words which is dynamically changing. We are continuously adding some words into it. How would you keep track of top 10 trending words at each moment? Ques2:Write a function that returns the length of the longest leaf-to-leaf path in a binary tree. Ques3:There is a N*N integer matrix Arr[N][N]. From the row r and column c, we can go to any of the following three indices: I. Arr[ r+1 ][ c-1 ] (valid only if c-1>=0) II. Arr[ r+1 ][ c ] III. Arr[ r+1 ][ c+1 ] (valid only if c+1

AnswerBot
2y
The first question is about keeping track of top 10 trending words in a dynamically changing file. The second question is about finding the length of the longest leaf-to-leaf path in a binary tree. Th...read more
Basavaraj
6mo
works at
We think and run our heads
Help your peers!
Add answer anonymously...
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

