Tip 1 : Don't be afraid to ask for a hint
Tip 2 : Focus on problem solving.
Tip 1 : Don't lie on your resume
Tip 2 : Try to mention what was your part in the projects mentioned



Try to solve the problem in 'Single Scan'. ' Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.



Note: Since the number of ways can be very large, return the answer modulo 1000000007.
N=3

We can climb one step at a time i.e. {(0, 1) ,(1, 2),(2,3)} or we can climb the first two-step and then one step i.e. {(0,2),(1, 3)} or we can climb first one step and then two step i.e. {(0,1), (1,3)}.
The interviewer was on time.



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.
Applied DFS traversal and a hasmap to store distance



Let the array be [1, 2, 3, 4, 4, 5]. In the given array ‘4’ occurs twice and the number ‘6’ is missing.
The expected time complexity was N*Log(N). The approach I used was the Binary Search on answer.



If the given array is: [0, 0, 1, 0, 1] The largest subarray would be: [0, 1, 0, 1] (last 4 elements) having length 4.



Binary search on answer concept was used in this question as well
It was HM round. An engineering manager took this round
This round was primarily focused on the projects mentioned in the resume.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?