Tip 1 : solve alteast 300 questions on leetcode
Tip 2 : Practice all the core CS concepts well
Tip 3 : Have atleast 1 good project on resume
Tip 1 : Keep it short and descriptive
Tip 2 : Mention atleast one project
The round held on 9. a.m . It was focused on DSA and some objective questions
1)The amount of petrol that is available at this particular petrol pump.
2)The distance to reach the next petrol pump.
Step 1) store the value of the capacity in some variable whenever the capacity becomes less than zero.
Step 2) You have to traverse the array only once
Step 3) If capacity < 0 then
start = i + 1;
deficit += capacity;
capacity = 0;
Step 4) return (capacity + deficit >= 0) ? start : -1;
1) Initialize all vertex to be unvisited
2) loop through every unvisited vertex and perform dfs to visit nearby vertex and mark as visited
3) In every dfs step increase counter by 1
4) return counter
Easy DSA questions were asked . Practice frequently solved questions on leetcode and gfg
Input:
'num1' : 1 -> 2 -> 3 -> NULL
'num2' : 4 -> 5 -> 6 -> NULL
Output: 5 -> 7 -> 9 -> NULL
Explanation: 'num1' represents the number 321 and 'num2' represents 654. Their sum is 975.
1 Create 3 stacks namely s1,s2,s3.
2 Fill s1 with Nodes of list1 and fill s2 with nodes of list2.
3 Fill s3 by creating new nodes and setting the data of new nodes to the sum of s1.top(), s2.top() and carry until list1 and list2 are empty .
4 If the sum >9
5 set carry 1
else
set carry 0
6 Create a Node(say prev) that will contain the head of the sum List.
7 Link all the elements of s3 from top to bottom
8 return prev
Torch and bridge puzzle
Tip 1 : Listen to the question carefully and check for different corner cases
Tip 2 : Ask doubts if any problem statement must be clear
Tip 3 : Practice these type of questions from GFG and coding Ninjas
Simple project discussion round. They took one project of mine and asked several question so good information about the project is required
Describe your project
Tip 1 : Good project on resume is a must
Tip 2 : Good information about the project is required
Tip 3 : Don't lie about your project
Basic HR questions regarding how was your interview experience. Some questions about the company etc. Overall very easy round just be honest with HR
How was your day?
what did you do in 4 years at college?
What are your strength?
What are your weakness?
failures you have encountered in your college life and how you overcome it?
Tip 1 : Be honest in the interview
Tip 2 : Answer all the questions
Tip 3 : Read general HR questions from GFG
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?