Tip 1 : Should Focus on DSA or Competitive Programming from 2nd year , If you are doing CP from 2nd year then must start DSA (Leetcode) from mid of 5th Semester. Don't keep topic for the last moment , read everything as much as you can before interview.
Tip 2 : Add 2-3 good projects and be ready with the answer of Why / What / How did this project.
Tip 3 : Also parallely read Cs fundamentals , DBMS , Operating System, Computer Networking.
Tip 1 : Add Good projects and also prepare with Why / What / How did your project.
Tip 2 : Make balanced resume , Add projects and also add some problem solving skills. So that your resume should not be Dev or DSA baised.
It was afternoon, Environment was good.
Interviewer was nice and well explained every problem.



Step 1: I solved with brute forces using for loop.
Step 2 : Interviewer asked me to optimise the solution.
Step 3: Then I cam up with log n solution.



Step 1 : First we discussed the problem.
Step 2 : I came up with brute force approach in N square time.
Step 3 : Interviewer asked me to optimize.
Step 4 : Finally I solved using Sliding window in O (n) time.
It was Evening, Environment was good.




Step1 : I cam up with brute force solution.
Step2: Then optimize the solution as interviewer asked me to optimise the solution.
It was Evening, Interviewer joined bit late . Environment was good.


1. The sizes will range from 1 to ‘N’ and will be integers.
2. The sum of the pieces cut should be equal to ‘N’.
3. Consider 1-based indexing.
Step1: I solved in O(n) time in first attempt.



You can’t sell without buying first.
For the given array [ 2, 100, 150, 120],
The maximum profit can be achieved by buying the stock at minute 0 when its price is Rs. 2 and selling it at minute 2 when its price is Rs. 150.
So, the output will be 148.
Step1: I explained by making graph in online paint.
Step2: Then I code it with optimal approc.
It was managerial round.
It was Evening.
Environment was good.
We started with projects discussion.



If 'ARR1' = [0, 2, 1], and 'ARR2' = [8, 10, 4] then the most optimal pairing will be (0, 4) , (1, 8) and (2, 10). The sum of absolute difference will be 4 + 7 + 8 = 19.
An element from one array can make a pair only with at most one element of another array.
Step1 : First I solved with brute force n square.
Step2 : Interviewer asked me to optimise the solution.
Step3 : I come with nlogn approch.
Asked me to design the Database Schema of User and Order. 5 sql queries on situation based in the same design.
Tip 1 : Write all the queries with optimal approach.

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