Try to do Data Structures and Algorithms based questions and firstly attempt it yourself before going to the solution, also try to do it as quickly as you can. Also prepare for theory subjects like Operating system, Database Management System, etc which I prepared through Coding Ninjas subjective notes and they are very accurate and up to mark
Tip 1 : Have some projects on resume.
Tip 2: Do not put false things on resume.



For the given binary tree

The level order traversal will be {1,2,3,4,5,6,7}.
You have been given a Binary Tree of integers. You are supposed to return the level order traversal of the given tree.



The start time of one chosen meeting can’t be equal to the end time of the other chosen meeting.
'N' = 3, Start = [1, 3, 6], End = [4, 8, 7].
You can organize a maximum of 2 meetings. Meeting number 1 from 1 to 4, Meeting number 3 from 6 to 7.
You are given the schedule of N meetings with their start time Start[i] and end time End[i]. But you have only 1 meeting room. So, you need to tell the meeting numbers you can organize in the given room, such that the number of meetings organized is maximum.



If there are any duplicates in the given array we will count only one of them in the consecutive sequence.
For the given 'ARR' [9,5,4,9,10,10,6].
Output = 3
The longest consecutive sequence is [4,5,6].
Can you solve this in O(N) time and O(N) space complexity?
Your task is to return the length of the longest consecutive sequence.



F(n) = F(n-1) + F(n-2),
Where, F(1) = F(2) = 1.
For ‘N’ = 5, the output will be 5.
The value N is a Positive integer that should be read from STDIN. The Nth term that is calculated by the program should be written to STDOUT. Other than the value of Nth term, no other characters/strings or message should be written to STDOUT.



'ARR[]' = [1, 2]
The size of the array is 2. So, the total number of permutations is 2! = 2. The possible permutations are [1, 2] (the array itself) and [2,1] where the position of element 1 in the original array is swapped with element 2 and vice-versa.
1. All the numbers in the array are unique.
2. You can return the answer in any order.
3. The original array is also a permutation of the given array.
Maintain two variables num and den to store numerator and denominator.
We need to find n! and (n-r)!.
Traverse from 1 to n and multiple i by num to find n!.
Traverse from 1 to (n-r) and multiply i by den to find (n-r)!.
num/den is the final answer



Repeatedly swap 2 adjacent elements if arr[j] > arr[j+1] .
Here, the maximum element of the unsorted array reaches the end of the unsorted array after each iteration.

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