Tip 1 : solve as many questions as possible
Tip 2 : take part in contests on codechef and codeforces
Tip 3 : try to design simple systems like parking lot and hotel management
Tip 4 : be proficient in any one language (c++, java, python preferable)
Tip 1 : please describe your projects along with the impact your work has left on the project
Tip 2 : don't make a mess by adding all types of skills like web dev, backend, frontend, blockchain, ML etc in your resume at once, stick to one or at most two domains and get good in those
Tip 3 : have atleast 3 good projects memtioned related to your domain
Round was at 11am, the interview was a very outgoing amd understanding guy. Helped set a good atmosphere for the interview which in turn relaxed my nerves and helped me think with a clear mind.
Anagrams are defined as words or names that can be formed by rearranging the letters of another word. Such as "spar" can be formed by rearranging letters of "rasp". Hence, "spar" and "rasp" are anagrams.
'triangle' and 'integral'
'listen' and 'silent'
Since it is a binary problem, there is no partial marking. Marks will only be awarded if you get all the test cases correct.
1. Used two frequency arrays to store the frequency of letters of both strings seperately.
2. Compared the frequency arrays. If they're same then the strings are anagram else they are not!
Pretty straightforward
1. First we'll have to convert these times into a comparable form, i.e. minutes so taking 00:00 as the starting point, calculate time for each element in minutes.( Taking 11:30 am as the example, Multiply the number formed by first two elements by 60, i.e 11*60 then add the two elements after the : i.e 11*60 + 30. If its am then no changes else add 12*60 to the above equation coz pm denotes 12 more hours passed from the am time. *I hope this is making sense* once you have this array ready... You can find the elements with the least difference by sorting the array and iterating through it!
The round was at 12pm and just like the previous one, the interviewer was a friendly guy ready to hear out all my problems and have a good brain storming session with me.
If the given matrix is:
[ [1, 2, 5],
[3, 4, 9],
[6, 7, 10]]
We have to find the position of 4. We will return {1,1} since A[1][1] = 4.
Take advantage of the fact that this matrix is sorted. Divide the matrix by the diagonal and then check whether the number lies in the upper half or the lower half.
The round was at 3pm and the interview was a very understanding guy, listened to all my queries and gave insightful replies to them that helped me solve the problem
Design a hotel management system
Tip 1 : please try take part in mock system design interviews
Tip 2 : get all the requirements of the system sorted out
This was not actually a technical round, it was a behavioural one. The round was at 4:15 pm. The interviewer was a really enthusiastic guy wanting to know mlre about me and up for a really good conversation to know me better.
Just normal talks about myself. My interests and hobbies.
Tip 1 : Just be yourself, no need to put up a superficial behaviour.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which array operation has O(n) worst-case time complexity?