Tip 1 : Be consistent
Tip 2 : Practice DSA along with basics of computer science.
Tip 1 : Keep it 1 pager and ATS friendly if off-campus. Also, keep it grammar error free.
Tip 2 : List projects with crisp and catchy description and your skills should be clearly visible.
It was online in day time.



Conditions for valid parentheses:
1. All open brackets must be closed by the closing brackets.
2. Open brackets must be closed in the correct order.
()()()() is a valid parentheses.
)()()( is not a valid parentheses.
The idea is to put all the opening brackets in the stack. Whenever you hit a closing bracket, search if the top of the stack is the opening bracket of the same nature. If this holds then pop the stack and continue the iteration, in the end if the stack is empty, it means all brackets are well-formed . Otherwise, they are not balanced.

If ‘STR’ = “8034”, then the encrypted string will be “1965”.

A valid IP address consists of exactly four integers, each integer is between 0 and 255 separated by single dots, and cannot have leading zeros (except if they are zero).
For example-
Following are valid IP addresses.
0.1.24.255
18.5.244.1
Following are invalid IP addresses.
2.01.24.255
18.312.244.1
It was online teams meeting interview round for 1 hour. Interviewer asked me 2 medium-hard coding questions. He was friendly.



Can you solve each query in O(logN) ?
The idea is to create a recursive function to implement the binary search where the search region is [l, r]. For each recursive call:
We calculate the mid value as mid = (l + h) / 2
Then try to figure out if l to mid is sorted, or (mid+1) to h is sorted
Based on that decide the next search region and keep on doing this till the element is found or l overcomes h.



S= “https://youtu.be/dQw4w9WgXcQ”, can be encoded to TinyUrl “http://tinyurl.com/abcdef”, then in future queries “http://tinyurl.com/abcdef” can be decoded into “https://youtu.be/dQw4w9WgXcQ”
The URL given to you for decoding will always be one of the URLs you have already returned after encoding in the past.
The encoded URL should strictly be of the format “http://tinyurl.com/abcdef”, where instead of “abcdef” you can have any alphanumeric code of length 6.
1. Pick the first character from the source string.
2. Append the picked character to the destination string.
3. Count the number of subsequent occurrences of the picked character and append the count to the destination string.
4. Pick the next character and repeat steps 2, 3 and 4 if the end of the string is NOT reached.
It was teams meeting. Interviewer asked me 1 DSA question and 1 system design question.
How can a database impact the scalability and speed of a system?
Tip 1 : Do study basics of system design
Tip 2 : Have an understanding of caching, scalability, database indexing etc.



The width of each bar is the same and is equal to 1.
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].
Output: 10
Explanation: Refer to the image for better comprehension:

You don't need to print anything. It has already been taken care of. Just implement the given function.
30 minutes friendly interview
Intro and Resume walkthrough.
Tip 1 : Prepare your intro beforehand
Tip 2 : Focus on important things in resume and try to end your intro at a topic in which you have good knowledge. Most probably, interviewer will ask questions from last topic discussed.
Some tasks you did to show leadership qualities.
Tip 1 : Try to give some real example.
Tip 2 : Keep it positive

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?