Basic Placement Preparation for Indian Students
Having been through many coding assessments and interviews, I've noticed some key concepts and problems repeat themselves. Whether you're preparing for university placements or coding interviews at MNCs and startups, this guide covers the most common topics you'll encounter.
Breaking a problem into smaller sub-problems with base condition. Asked in 80% interviews.
Efficiently solving subarray problems by maintaining a window. Very common in arrays.
Operations like reverse, substring, anagram detection. Basic requirement.
Layer-wise graph traversal for shortest path problems.
Deep exploration in graphs/trees for connected components.
Optimizing recursive problems by caching results.
Making best local decision at each step.
Working with sorted arrays using two index pointers.
Trying solutions recursively, undoing if necessary.
Searching in sorted array by dividing search space.
# | Concept | Problem & Link |
---|---|---|
1 | Recursion | Max Depth Binary Tree - Problem 104 |
2 | Sliding Window | Longest Substring Without Repeat - Problem 3 |
3 | String Manipulation | Longest Palindrome - Problem 5 |
4 | BFS | Level Order Traversal - Problem 102 |
5 | DFS | Number of Islands - Problem 200 |
6 | DP | Maximum Subarray - Problem 53 |
7 | Greedy | Jump Game - Problem 55 |
8 | Two Pointers | 3 Sum Problem - Problem 15 |
9 | Backtracking | Permutations - Problem 46 |
10 | Binary Search | Basic Binary Search - Problem 704 |
11 | Tree Traversal | Inorder Traversal - Problem 94 |
12 | OOP Java | LRU Cache - Problem 146 |
13 | SQL | Second Highest Salary - Problem 176 |
14 | Stack | Valid Parentheses - Problem 20 |
15 | Greedy | Burst Balloons - Problem 452 |
Best for interview prep
LeetCodeCompany challenges
HackerRankTheory + Practice
GeeksforGeeksCompetitive programming
CodeChefContest platform
CodeforcesInterview focused
InterviewBitHey there! Just a little something from me to you..
Be regular in your practice - that's the most important thing in our line of work. If I can do LeetCode medium problems today and then take a break from coding for 3-4 months, I won't even be able to handle LeetCode easy problems later.
So, whatever time you can spend on coding, make sure you spend it consistently. Participating in weekly contests on platforms like GeeksforGeeks, LeetCode, CodeChef, or Codeforces will give you a reality check on your speed and efficiency.
All the very best for the upcoming placement season!