Tip 1 : Practice aptitude questions
Tip 2 : Practice coding questions
Tip 3 : Prepare for system design
Tip 1 : Have atleast 3 great project
Tip 2 : Write only what you know and prepare well
It was purely an coding round



All the integers in the array appear only once except for precisely one integer which appears two or more times.
used hashmap



There must be no consecutive horizontal lines of equal height in the output skyline. For instance, [...,[2 3], [4 5], [7 5], [11 5], [12 7],...] is not acceptable; the three lines of height 5 should be merged into one in the final output.
As such: [..., [2 3], [4 5], [12 7],...].
Also, the buildings are sorted by a non-decreasing order.
For more clarification see sample case 1.



The diameter of a binary tree is the length of the longest path between any two end nodes in a tree.
The number of edges between two nodes represents the length of the path between them.
Input: Consider the given binary tree:

Output: 6
Explanation:
Nodes in the diameter are highlighted. The length of the diameter, i.e., the path length, is 6.
Technical Round. It was taken by 2 people.
Asked me to introduce and then asked question related to my resume.
They then asked questions related to oops, dbms. He asked 1 coding question just approach.



a) Duplicate elements may be present.
b) If no such element is present return -1.
Input: Given a sequence of five numbers 2, 4, 5, 6, 8.
Output: 6
Explanation:
In the given sequence of numbers, number 8 is the largest element, followed by number 6 which is the second-largest element. Hence we return number 6 which is the second-largest element in the sequence.
use sort then take 2 element
It was taken by some senior. He asked system design question and many questions on me, my hobbies, background etc.
Design quickr
Tip 1 : just try
Tip 2 : asked questions
Tip 3 : practice some system design beforehand

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is the output of print(type("Python"))?