Tip 1 :Start giving contests on platforms like codeforces, leetcode etc as soon as you get a basic understanding of DSA
Tip 2 : Keep studying CS fundamentals from the start itself
Tip 3 :Try doing Low Level Design problems as well
Tip 1:Maintain a good cgpa
Tip 2:Have atleast 3 projects in your resume
The test was in the evening in online mode, It had 3 questions of easy to medium type and 5 MCQs



Use zero-based indexing for the nodes.
The tree is always rooted at 0.
Simple BFS worked



1. If the list is empty, the function immediately returns None because there is no middle node to find.
2. If the list has only one node, then the only node in the list is trivially the middle node, and the function returns that node.



Here, sorted paths mean that the expected output should be in alphabetical order.
Given a square matrix of size 4*4 (i.e. here 'N' = 4):
1 0 0 0
1 1 0 0
1 1 0 0
0 1 1 1
Expected Output:
DDRDRR DRDDRR
i.e. Path-1: DDRDRR and Path-2: DRDDRR
The rat can reach the destination at (3, 3) from (0, 0) by two paths, i.e. DRDDRR and DDRDRR when printed in sorted order, we get DDRDRR DRDDRR.
Introduction in detail including all the details about project ,courses in b-tech semester and hobbies
As my projects are related to machine learning and Natural Language processing ,and the interviewer is also working on same tech stack so he was quite interested in the project implementation
Asked briefly through my pervious Internship details and work
And then Given a dsa problem and asked in which language your comfortable and given a question to solve



Input: ‘n’ = 7
Output: 2
Explanation:
The square root of the number 7 lies between 2 and 3, so the floor value is 2.
So he asked me to explain all approaches from brute force to the optimal solution, which he was expecting me to do in O(logn), and use different methods for each implementations(different methods in same code).
It had basic DSA and some HR questions



I solved it using backtracking

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?