Tip 1 : solve maximum coding questions.
Tip 2 : develop problem-solving skills.
Tip 3 : do some projects.
Tip 1 : don't put false things.
Tip 2 : keep your resume short.
This is my 1st round; it was held on 1st March 2023 and contained only basic coding questions, which seemed easy for me.



If the given string is: STR = "abcde". You have to print the string "edcba".
Try to solve the problem in O(1) space complexity.



1. The array consists of only 3 distinct integers 0, 1, 2.
2. The array is non-empty.
1. Initialize a variable to hold the maximum element and set it to the first element in the array.
2. Loop through the array starting at the second element.
3. If the current element is greater than the maximum element, update the maximum element.
4. Return the maximum element.
This was my 2nd round, and it was also data structures and algorithms questions.




If we are given the above binary tree as input then moving from root node(5) to the farthest leaf node(50), the path formed will be [ 5->10->25->35->40->45->50 ]. The total number of nodes encountered is 7, therefore the maximum depth of the binary tree is 7.
1. Check if the root node is null, if so, return 0.
2. Recursively, find the maximum depth of the left subtree and right subtree.
3. Return the maximum of the two depths plus one (to account for the root node).


Input: [1,2,3,4,5]
Output: [5,4,3,2,1]

This was my 3rd round for me it was tough compared to others. This round contains problem from system design, DBMS, operating system.
Design a URL shortening service. (Learn)
1. Define the requirements and constraints of the service.
2. Choose appropriate data storage and retrieval mechanisms.
3. Implement a system to generate unique short URLs for long URLs, and to redirect users from short URLs to long URLs.
Define ACID properties. (Learn)

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