Tip 1 : I've watched youtube tutorials
Tip 2 : Read some books; they will help you.
Tip 3 : Do some great projects.
Tip 1 : Keep short, and don't put false things
Tip 2 : Highlight your technical skills.
So this was my first round of interview and it was basics data structures and algorithms questions where during video call they told me problem and I shared my screen and write the output.



An array ‘B’ is a subarray of an array ‘A’ if ‘B’ that can be obtained by deletion of, several elements(possibly none) from the start of ‘A’ and several elements(possibly none) from the end of ‘A’.
Step 1 : Initialize a variable to store the maximum element as the first element of the array.
Step 2 : Iterate through the rest of the array and compare each element to the maximum element. If the element is greater than the maximum element, update the maximum element variable. Return the maximum element variable after iterating through the entire array.



String 'S' is NOT case sensitive.
Let S = “c1 O$d@eeD o1c”.
If we ignore the special characters, whitespaces and convert all uppercase letters to lowercase, we get S = “c1odeedo1c”, which is a palindrome. Hence, the given string is also a palindrome.
Step 1 : Initialize two pointers, one pointing to the beginning of the string and the other pointing to the end of the string.
Step 2 : Iterate through the string, comparing the characters at each pointer. If the characters match, move the pointers towards each other, continuing the comparison until they meet at the middle of the string. If all characters match, return True. Otherwise, return False.
Tell me about your role in your previous company?
What were the other responsibilities?
What challenges did you face while working in the project?
How did you overcome those problems?



If the given string is: STR = "abcde". You have to print the string "edcba".
Try to solve the problem in O(1) space complexity.
Step 1 : Initialize an empty stack and push each character of the input string onto the stack.
Step 2 : Pop the characters off the stack one by one and append them to a new string. Return the new string.



Input: Let the binary tree be:

Output: 2
Explanation: The root node is 3, and the leaf nodes are 1 and 2.
There are two nodes visited when traversing from 3 to 1.
There are two nodes visited when traversing from 3 to 2.
Therefore the height of the binary tree is 2.
Step 1 : Check if the binary tree is empty. If it is, return 0.
Step 2 : Recursively calculate the height of the left and right subtrees of the binary tree, and return the maximum height plus one.



Can you solve this in logarithmic time and space complexity?
Step 1 : Store the original URL in a database and generate a unique identifier for the shortened URL. This identifier can be generated by hashing the original URL or by using an auto-incrementing counter. Store this identifier along with the original URL in the database.
Step 2 : When a user requests the shortened URL, lookup the original URL in the database using the unique identifier and redirect the user to the original URL.
Which was your previous company?
How was your experience there?
What are your strengths and weaknesses?

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