Tip 1 : Be very informative of your project and brush it up before the interview process
Tip 2 : In the Aptitude round, aptitude questions were relatively harder but coding problems are very easy
Tip 1 : Describe your project(s) well and put GitHub link
Tip 2 : They also asked non-technical topics that were in my resume
There were 30 MCQ questions and 2 coding problems. The MCQs were medium-level questions. Coding problems were fairly easy.

1) Length of the password must be between 8 to 15 characters.
2) At least one digit (0-9), one lowercase letter (a-z), one uppercase letter (A-Z) and one special character (%, ^, &, #, *, %, etc) must be present.
3) Password must not contain any space.
Given ‘STR’ = “Codingninja#1” As it satisfies all the above conditions so it is a valid password and therefore you have to return true.
1.) Maintained 4 flags as "false" for checking the capital letter, small letter, special character and number.
2.) Iterated the string and checking every character in it for the above 4 flags.
3.) If either of the flags were false, returned 'false'
4.) If the length of string was less than 'K', returned 'false'
5.) Returned 'true'



The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Can you solve this problem in O(N) time and O(1) space complexity?
1.) Maintained a 'prev' pointer and 'temp' pointer.
2.) Iterated the list and saved the next pointer of the current node as temp and assigned current->next = prev and then, prev = current, this is the general approach for reversing the list.
3.) Returned prev
The interview was scheduled by the placement cell in the evening. The interviewer seemed to be an experienced developer.
He asked me general background questions like what are you interested most in? what are your technical interests? etc.
He then asked me about my project. Explained him well on that front and he seemed satisfied. He asked me to find the Lowest Common Ancestor of a given Binary Search Tree. I solved it in around 20-30 minutes and he finally asked me to write the solution on paper. He asked some practical OOPs problems for a while and I answered correctly but the explanations could be more thorough.



You may assume that given ‘X’ and ‘Y’ definitely exist in the given binary tree.
For the given binary tree

LCA of ‘X’ and ‘Y’ is highlighted in yellow colour.
This problem was alien to me at that time. But, I was familiar with BST. Solved the problems using 'parent' pointers first.
Then, came up with the following recursive idea.
function signature: LCA(Node* root , int n1, int n2)
1.) If the current root is NULL, return NULL.
2.) If root->val> n1 && root->val > n2:
return LCA(root->left , n1 , n2)
3.) If root->val < n1 && root->val < n2
return LCA(root->right , n1 , n2)
4.) return root
The interview was some 30 minutes after the technical round. The HR asked me general questions like my hobbies, technical and non-technical things in my resume, my interests, etc. The overall communication was very friendly.
What do you do to relieve stress? Tell me something outside of your academics.
Tip 1 : I listen to music and mostly take a walk for some fresh air in the evening/morning.
Tip 2 : I am a team person and believe that the whole is greater than the sum of parts. I am interested in painting and writing and am currently a coordinator at the literary committee of the college.

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