Tip 1 : Be strong with basics
Tip 2 : Learn any one programming language end to end.
Tip 3 : Attempting Regular contests on various coding platforms
Tip 1 : Be honest and clear on the topics you know
Tip 2 : Be confident on all the projects you mentioned in resume end to end
late Morning



Consider If N = 2, then there can be 4 different ways to color fences such that at most 2 adjacent fences have the same color-:
[ [0, 1],
[1, 0],
[1, 1],
[0, 0] ]
Hence, the answer is 4.
First I had couple of greedy solutions in mind, later on analysis I tried applying dynamic programming approach.
It was working.



Technical Interview. The round went on for about 20 min



Input: arr = [2, 1, 5, 6, 2, 3], k = 2
Output: 11
Explanation:
First painter can paint boards 1 to 3 in 8 units of time and the second painter can paint boards 4-6 in 11 units of time. Thus both painters will paint all the boards in max(8,11) = 11 units of time. It can be shown that all the boards can't be painted in less than 11 units of time.
Technical interview 2



In the given linked list, there is a cycle, hence we return true.

solved using slow pointer and fast pointer approach.



The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Can you solve this problem in O(N) time and O(1) space complexity?
Hiring Manger, timing was late morning
More about project, what is my contribution, why did I select the project and it's importance,
Personality questions: more on how comfortable i am working with large team, contribution.
Technologies: technologies i was interested and how i explore
Tip 1 : Be confident
Tip 2 : Maintain good communication verbally and through video

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?