Tip 1 : Remain calm while preparing and while performing in interviews
Tip 2 : DSA should be on tips
Tip 3 : Be alert what is being asked to you and think with open mind
Tip 1 : Be concise and to the point
Tip 2 : Format should be standard and chronology order of mentioning things should be proper
The platform was HackerRank with tab proctoring and webcam proctoring enabled.
Timings were during day time around 10 am
In the below histogram where array/list elements are {2, 1, 5, 6, 2, 3}.
The area of largest rectangle possible in the given histogram is 10.
A substring is a contiguous sequence of elements within a string (for example, “bcd” is a substring of “abcde” while “bce” is not).
A string is said to be palindrome if the reverse of the string is the same as the actual string. For example, “abba” is a palindrome, but “abbc” is not a palindrome.
During day time
Platform: Zoom
The round starts with some introduction of mine, followed by my interests in life and what should I see in the company where I want to work
Let S = “abdd” and X = “bd”.
The windows in S which contain all the characters in X are: 'abdd', 'abd', 'bdd', 'bd'.
Out of these, the smallest substring in S which contains all the characters present in X is 'bd'.
All the other substring have a length larger than 'bd'.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you create a function in JavaScript?