Tip 1 : Be consistent
Tip 2 : Focus on solving leetcode medium without any help in 30 mins
Tip 3 : Revise what you practiced
Tip 1 : Don't lie on resume
Tip 2 : Know everything in detail whatever you mention on resume
Coding



You can only move down or right at any point in time.
Solved by modifications in BFS. Only modifying the input to BFS input was the main catch.
2 coding questions



The order in which the groups and members of the groups are printed does not matter.
inputStr = {"eat","tea","tan","ate","nat","bat"}
Here {“tea”, “ate”,” eat”} and {“nat”, “tan”} are grouped as anagrams. Since there is no such string in “inputStr” which can be an anagram of “bat”, thus, “bat” will be the only member in its group.
Created custom struct object and used custom sort method. This is also a problem on leetcode that can be referred too.



Input: 'arr' = [1, 2, 7, -4, 3, 2, -10, 9, 1]
Output: 11
Explanation: The subarray yielding the maximum sum is [1, 2, 7, -4, 3, 2].
First explained recursive approach, then optimised it via dp. Kadane algo in the end.
Coding round



Given linked list: ‘2 => 1 => 3 => 4 => 6 => 5’
While maintaining the relative order of nodes as it is in the input, Nodes at odd positions are (2, 3, 6), and nodes at evens position are (1, 4, 5).
Modified linked list: ‘2 => 3 => 6 => 1 => 4 => 5’
1. Consider that the first node is odd, the second is even, and so on.
Created separate linked lists for even and odd and then merged them to one.


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.
Direct problem available on leetcode. Solved using DP after optimization.
Design a vending machine
Tip 1 : Clarify requirements in the beginning
Tip 2 : Be well versed with OOP
Tip 3 : Keep checking increments with interviewer.
Hiring Manager Round
Went through projects in my resume in detail and discussed what approaches were used and why.
Tip 1 : Be honest
Tip 2 : Listen properly
Tip 3 : Be open to suggestions
Leadership principles
Tip 1 : Reflect good values
Tip 2 : Explain examples from previous team situations.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?