Tip 1 : Practice questions fully on your own.
Tip 2 : Be calm during the interview.
Tip 3 : Rather than jumping to solutions, jump to approach.
Tip 1 : Keep it short and simple
Tip 2 : Tailor your resume to the job



1. The ‘keyName’ contains only the lower-case English alphabets.
2. The ‘keyTime’ is given in the 24-hour format “HH:MM”, such as “00:00”, “13:35”, and “23:59” are some of the valid times.
3. “08:05 - 09:05” is considered to be within a ‘one-hour’, whereas “12:05 - 13:06” is not considered to be within a ‘one-hour’ period.
4. The system saves the ‘name’ and the ‘time’ of the workers in ‘any order’.
5. Each pair of [‘keyName’, ‘keyTime’] is ‘unique’.
6. Print the output in ‘increasing’ order alphabetically.



Let N = 8 and M = 3
The numbers divisible by 3 are 3, 6, 9, …
From these numbers 9 is closest to 8. Thus, the answer is 9.
I went for O(nlogn) approach where I sorted the array and found the absolute difference.



0 x y
1 x y
2 x y
2 questions were asked and both were to be solved on hackerrank platform.


Input: ‘str’ = ‘ababcdabab’
Output: 'abab'
Explanation:
Here the prefix ‘abab’ is equal to the suffix ‘abab’. The length of the prefix is 4. There's no other prefix that has length > 4 and is also present as a suffix. Hence the answer is 'abab'.







This was a LLD round
Create LLD/ classes including functions and parameters for a system on which a traveler can marks the places he/she has visited and location of places he/she is willing to visit.
This was a Hiring manager round
Introduce yourself
What are your hobbies?
Tell us about your previous working roles?
What do you expect from us?

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?