BOTH 78% Placed

Top 100 LeetCode + HackerRank Problems

The complete interview-ready problem set for placement assessments in 2026-27. Covers 100 highest-ROI problems across LeetCode Easy/Medium/Hard + HackerRank assessment patterns used by Accenture, TCS Digital, Infosys HackWithInfy, Wipro Elite NLTH, Cognizant GenC, Capgemini, Deloitte USI, Goldman Sachs CodeChef, DE Shaw, JP Morgan Code for Good, and most Indian product & service hiring tests. Each problem: brute-force → optimal, full Java solution, complexity walk, test cases, and common traps. Ideal for first-time placement aspirants and anyone targeting 50+ interview calls.

TBA 90 Days 0 enrolled Telugu / English
💼 Job Opportunities
Software Engineer, Associate SDE, Full Stack Developer, Product Engineer at Accenture, TCS Digital, Infosys (DSE/Power Programmer), Wipro Elite, Cognizant GenC, Capgemini, Deloitte USI, JP Morgan, Goldman Sachs, Morgan Stanley, Barclays, DE Shaw, Freshworks, Zoho, Paytm, PayPal, MakeMyTrip, Myntra, Nykaa, Dream11, Gameskraft, ShareChat, Byju's, Unacademy, PhysicsWallah. Expected CTC: 4-18 LPA for freshers; 12-35 LPA for experienced.
📚 Curriculum (10 Units)
Unit 1: Easy Warm-Ups (Arrays, Math, Strings) 10 topics
P1. Reverse Integer (LC 7)
Reverse digits of a 32-bit integer; return 0 on overflow. Key edge case: INT_MIN and trailing zeros.
P2. Palindrome Number (LC 9)
Without converting to string. Reverse half and compare; handles negative and trailing zero.
P3. Roman to Integer (LC 13)
Subtract when smaller precedes larger (IV=4, IX=9). HashMap pattern.
🔒 Enroll to unlock
P4. Longest Common Prefix (LC 14)
Vertical scan OR divide-and-conquer. Edge case: empty array.
🔒 Enroll to unlock
P5. Remove Duplicates from Sorted Array (LC 26)
Two-pointer in-place. Returns new length.
🔒 Enroll to unlock
P6. Plus One (LC 66)
Array representation of number +1 with carry propagation. Edge case: all 9s.
🔒 Enroll to unlock
P7. Sqrt(x) (LC 69)
Integer square root via binary search. Handle overflow with long or mid*mid check.
🔒 Enroll to unlock
P8. Single Number (LC 136)
Every element twice except one. XOR all elements → answer. O(1) space.
🔒 Enroll to unlock
P9. Majority Element (LC 169)
Appears more than n/2 times. Boyer-Moore voting in O(1) space.
🔒 Enroll to unlock
P10. Happy Number (LC 202)
Sum of squares of digits, repeat. Cycle detection with HashSet or Floyd's.
🔒 Enroll to unlock
Unit 1 Exam: Easy Warm-Ups
🔒 Enroll to unlock this exam
Enroll
Unit 2: Two Pointers & Sliding Window 10 topics
P11. Two Sum II — Input Array Is Sorted (LC 167)
Two pointers from both ends. O(n) time, O(1) space. 1-indexed result.
🔒 Enroll to unlock
P12. 3Sum (LC 15)
Sort + two pointers for each fixed element. Skip duplicates carefully. O(n²).
🔒 Enroll to unlock
P13. Move Zeroes (LC 283)
In-place two-pointer write index. Maintain relative order of non-zeros.
🔒 Enroll to unlock
P14. Remove Duplicates from Sorted Array II (LC 80)
Allow each duplicate twice. Generalize to "k times" via comparison window.
🔒 Enroll to unlock
P15. Minimum Size Subarray Sum (LC 209)
Sliding window variable size. Shrink while sum ≥ target. O(n).
🔒 Enroll to unlock
P16. Fruit Into Baskets (LC 904)
Longest subarray with at most 2 distinct values. Sliding window with HashMap.
🔒 Enroll to unlock
P17. Permutation in String (LC 567)
Fixed-size sliding window with frequency match. O(n) after preprocessing.
🔒 Enroll to unlock
P18. Longest Repeating Character Replacement (LC 424)
Sliding window: windowLen - maxFreq ≤ k keeps it valid.
🔒 Enroll to unlock
P19. Maximum Points You Can Obtain from Cards (LC 1423)
Pick k from either end. Sliding window on "leave-behind" subarray of size n-k.
🔒 Enroll to unlock
P20. Subarrays with K Different Integers (LC 992)
Count(exactly K) = Count(at most K) - Count(at most K-1). Two sliding windows.
🔒 Enroll to unlock
Unit 2 Exam: Two Pointers & Sliding Window
🔒 Enroll to unlock this exam
Enroll
Unit 3: Binary Search (Array + Answer Space) 10 topics
P21. Binary Search (LC 704)
The fundamental template. Avoid integer overflow with mid = lo + (hi-lo)/2.
🔒 Enroll to unlock
P22. Search Insert Position (LC 35)
Lower_bound pattern. Returns insertion index if not found.
🔒 Enroll to unlock
P23. First Bad Version (LC 278)
Binary search on predicate. API call minimization problem.
🔒 Enroll to unlock
P24. Find First and Last Position of Element (LC 34)
Two binary searches (lower and upper bound). Returns [-1,-1] if absent.
🔒 Enroll to unlock
P25. Find Peak Element (LC 162)
Binary search on slope direction. O(log n) even in unsorted input.
🔒 Enroll to unlock
P26. Find Minimum in Rotated Sorted Array (LC 153)
Compare mid with right-end to decide half. O(log n).
🔒 Enroll to unlock
P27. Koko Eating Bananas (LC 875)
Binary search on answer. Feasibility: hours at speed k ≤ H.
🔒 Enroll to unlock
P28. Capacity to Ship Packages Within D Days (LC 1011)
Binary search on capacity. Lower bound = max weight; upper = sum.
🔒 Enroll to unlock
P29. Split Array Largest Sum (LC 410)
Binary search on max-sum per partition. Feasibility via greedy counting.
🔒 Enroll to unlock
P30. Median of Two Sorted Arrays (LC 4)
Binary search partition on smaller array. O(log(min(n,m))).
🔒 Enroll to unlock
Unit 3 Exam: Binary Search
🔒 Enroll to unlock this exam
Enroll
Unit 4: Linked Lists & Iterators 10 topics
P31. Remove Duplicates from Sorted List (LC 83)
Single pass skipping duplicates. Delete current.next when values equal.
🔒 Enroll to unlock
P32. Delete Node in a Linked List (LC 237)
Only node reference given. Copy next's value then delete next.
🔒 Enroll to unlock
P33. Reverse Linked List II (LC 92)
Reverse between positions left and right. Dummy + in-place insertion.
🔒 Enroll to unlock
P34. Intersection of Two Linked Lists (LC 160)
Two pointers; swap heads at end. O(1) space.
🔒 Enroll to unlock
P35. Partition List (LC 86)
Rearrange < x before ≥ x, preserving order. Two dummy lists then join.
🔒 Enroll to unlock
P36. Design Linked List (LC 707)
Implement get, addAtHead, addAtTail, addAtIndex, deleteAtIndex. Production-style.
🔒 Enroll to unlock
P37. Flatten a Multilevel Doubly Linked List (LC 430)
DFS/stack flatten child lists inline. Update prev/next/child pointers.
🔒 Enroll to unlock
P38. Binary Search Tree Iterator (LC 173)
Controlled inorder traversal. Stack storing leftmost path; O(h) space.
🔒 Enroll to unlock
P39. Peeking Iterator (LC 284)
Wrap iterator with single-element lookahead. Design pattern.
🔒 Enroll to unlock
P40. Flatten Nested List Iterator (LC 341)
Stack-based. Push nested lists in reverse so top is next integer.
🔒 Enroll to unlock
Unit 4 Exam: Linked Lists & Iterators
🔒 Enroll to unlock this exam
Enroll
Unit 5: Trees, BSTs & Traversals 10 topics
P41. Same Tree (LC 100)
Recursive structural + value equality check.
🔒 Enroll to unlock
P42. Symmetric Tree (LC 101)
Mirror recursion: left.left vs right.right, left.right vs right.left.
🔒 Enroll to unlock
P43. Path Sum (LC 112)
Root-to-leaf sum equals target. Recursive subtraction.
🔒 Enroll to unlock
P44. Sum Root to Leaf Numbers (LC 129)
Accumulate number * 10 + node.val down the path; add at leaves.
🔒 Enroll to unlock
P45. Balanced Binary Tree (LC 110)
Height-check returning -1 on imbalance for early exit. O(n).
🔒 Enroll to unlock
P46. Binary Tree Zigzag Level Order (LC 103)
BFS; reverse alternate levels. Or use Deque addFirst/addLast.
🔒 Enroll to unlock
P47. Lowest Common Ancestor of BST (LC 235)
Use BST ordering: split point where p and q diverge.
🔒 Enroll to unlock
P48. Count Complete Tree Nodes (LC 222)
O(log² n): check left vs right subtree depths; use formula 2^h - 1.
🔒 Enroll to unlock
P49. All Nodes Distance K in Binary Tree (LC 863)
Build parent map + BFS from target node K levels.
🔒 Enroll to unlock
P50. Binary Tree Right Side View (LC 199)
BFS: last node at each level. Or DFS visiting right first, tracking depth.
🔒 Enroll to unlock
Unit 5 Exam: Trees & Traversals
🔒 Enroll to unlock this exam
Enroll
Unit 6: Greedy & Intervals 10 topics
P51. Assign Cookies (LC 455)
Sort both; greedy two-pointer pair largest kid with smallest sufficient cookie.
🔒 Enroll to unlock
P52. Lemonade Change (LC 860)
Simulate $5, $10, $20 bills. Greedy: always give $10 before two $5s.
🔒 Enroll to unlock
P53. Jump Game (LC 55)
Track farthest reachable; return false if i exceeds it.
🔒 Enroll to unlock
P54. Jump Game II (LC 45)
Min jumps via BFS-like greedy: track currentEnd and farthest.
🔒 Enroll to unlock
P55. Gas Station (LC 134)
If total gas ≥ total cost, answer exists. Reset start on deficit.
🔒 Enroll to unlock
P56. Candy (LC 135)
Two passes: left-to-right then right-to-left, take max. O(n).
🔒 Enroll to unlock
P57. Merge Intervals (LC 56)
Sort by start; merge when current.end ≥ next.start.
🔒 Enroll to unlock
P58. Insert Interval (LC 57)
Three phases: strictly before, overlapping merge, strictly after.
🔒 Enroll to unlock
P59. Non-overlapping Intervals (LC 435)
Sort by end; keep interval with earliest end of compatible.
🔒 Enroll to unlock
P60. Minimum Arrows to Burst Balloons (LC 452)
Sort by end; shoot at earliest end of overlapping group.
🔒 Enroll to unlock
Unit 6 Exam: Greedy & Intervals
🔒 Enroll to unlock this exam
Enroll
Unit 7: Dynamic Programming (1D & 2D) 10 topics
P61. Fibonacci Number (LC 509)
Intro to DP. Memoized recursion → bottom-up → O(1) space.
🔒 Enroll to unlock
P62. Climbing Stairs (LC 70)
Fibonacci equivalent. dp[n]=dp[n-1]+dp[n-2].
🔒 Enroll to unlock
P63. Min Cost Climbing Stairs (LC 746)
Take one or two steps; minimize cost. O(1) space.
🔒 Enroll to unlock
P64. Maximum Subarray (LC 53)
Kadane. Running sum; reset when negative.
🔒 Enroll to unlock
P65. Unique Paths (LC 62)
Grid DP or math combination C(m+n-2, m-1).
🔒 Enroll to unlock
P66. Minimum Path Sum (LC 64)
dp[i][j] = grid[i][j] + min(dp[i-1][j], dp[i][j-1]).
🔒 Enroll to unlock
P67. Longest Increasing Subsequence (LC 300)
O(n²) DP → O(n log n) patience sort with binary search.
🔒 Enroll to unlock
P68. Longest Common Subsequence (LC 1143)
2D DP. Space optimizable to O(min(n,m)).
🔒 Enroll to unlock
P69. Edit Distance (LC 72)
Levenshtein. Three operations; space-optimize to 1D row.
🔒 Enroll to unlock
P70. Partition Equal Subset Sum (LC 416)
Subset sum = total/2. Boolean DP, 1D space-optimized.
🔒 Enroll to unlock
Unit 7 Exam: Dynamic Programming
🔒 Enroll to unlock this exam
Enroll
Unit 8: Bit Manipulation & Number Theory 10 topics
P71. Number of 1 Bits (LC 191)
Brian Kernighan's: n &= n-1 clears lowest set bit. O(# set bits).
🔒 Enroll to unlock
P72. Reverse Bits (LC 190)
Bit-by-bit, or byte-reverse with lookup. 32-bit integer.
🔒 Enroll to unlock
P73. Counting Bits (LC 338)
dp[i] = dp[i >> 1] + (i & 1). O(n).
🔒 Enroll to unlock
P74. Power of Two (LC 231)
n > 0 && (n & (n-1)) == 0.
🔒 Enroll to unlock
P75. Missing Number (LC 268)
XOR all numbers + all indices; OR sum formula.
🔒 Enroll to unlock
P76. Single Number II (LC 137)
Every number 3x except one. Bit counting mod 3 OR two-variable state machine.
🔒 Enroll to unlock
P77. Single Number III (LC 260)
Two singletons. XOR all → group by a bit that differs → XOR each group.
🔒 Enroll to unlock
P78. Sum of Two Integers without + (LC 371)
XOR = sum without carry; AND
🔒 Enroll to unlock
P79. Divide Two Integers without / or * (LC 29)
Bit-shift doubling of divisor. Watch overflow (INT_MIN / -1).
🔒 Enroll to unlock
P80. Power(x, n) (LC 50)
Fast exponentiation by squaring. O(log |n|). Handle negative n carefully.
🔒 Enroll to unlock
Unit 8 Exam: Bit Manipulation & Number Theory
🔒 Enroll to unlock this exam
Enroll
Unit 9: HackerRank Favourites (Strings + Warmup + Sort) 10 topics
P81. Sock Merchant (HR Warmup)
Count pairs of matching socks. HashMap or frequency array; sum count/2.
🔒 Enroll to unlock
P82. Counting Valleys (HR Warmup)
Track sea level; count transitions into below-sea-level valleys.
🔒 Enroll to unlock
P83. Jumping on the Clouds (HR Warmup)
Greedy: jump 2 if possible, else 1. O(n).
🔒 Enroll to unlock
P84. Repeated String (HR Warmup)
Count "a"s in one period * full periods + "a"s in remainder prefix.
🔒 Enroll to unlock
P85. New Year Chaos (HR Arrays)
Count minimum bribes; return "Too chaotic" if anyone bribed > 2.
🔒 Enroll to unlock
P86. Minimum Swaps 2 (HR Arrays)
Place each value at its index; count cycle-based swaps.
🔒 Enroll to unlock
P87. Array Manipulation (HR Medium)
Difference array technique; O(n+m) instead of O(n*m).
🔒 Enroll to unlock
P88. Sherlock and Anagrams (HR Strings)
Count anagram pairs among all substrings. Sort key in HashMap.
🔒 Enroll to unlock
P89. Sparse Arrays (HR Strings)
For each query word, count occurrences. HashMap of string frequencies.
🔒 Enroll to unlock
P90. Pairs (HR HashMap)
Count pairs with difference k. HashSet lookup for (x + k) and (x - k).
🔒 Enroll to unlock
Unit 9 Exam: HackerRank Favourites
🔒 Enroll to unlock this exam
Enroll
Unit 10: Hard LeetCode + Competitive Flavour 10 topics
P91. Trapping Rain Water (LC 42)
Two-pointer O(n) O(1), or monotonic stack, or DP arrays. All three walks.
🔒 Enroll to unlock
P92. Largest Rectangle in Histogram (LC 84)
Monotonic stack O(n). Sentinel 0 at end simplifies code.
🔒 Enroll to unlock
P93. Sliding Window Maximum (LC 239)
Monotonic deque of indices. O(n) with amortized analysis.
🔒 Enroll to unlock
P94. Longest Consecutive Sequence (LC 128)
O(n) with HashSet; only start counting from sequence beginnings.
🔒 Enroll to unlock
P95. LRU Cache (LC 146)
HashMap + DoublyLinkedList. O(1) get/put.
🔒 Enroll to unlock
P96. Find Median from Data Stream (LC 295)
Two heaps with size invariant. O(log n) add, O(1) findMedian.
🔒 Enroll to unlock
P97. Serialize and Deserialize BST (LC 449)
Preorder serialization; reconstruct using BST property (no null markers needed).
🔒 Enroll to unlock
P98. Word Ladder II (LC 126)
BFS + backtracking. Build parents map during BFS, DFS from end to start.
🔒 Enroll to unlock
P99. Regular Expression Matching (LC 10)
2D DP over (s, p). Star handles "zero or more of prev char".
🔒 Enroll to unlock
P100. Final Mock Assessment + Placement Playbook
Full timed mock: 3 problems in 90 minutes. HackerRank-style scoring + interview tips for service-cos vs product-cos.
🔒 Enroll to unlock
Unit 10 Exam: Hard LeetCode + Competitive
🔒 Enroll to unlock this exam
Enroll
⭐ Student Reviews

No reviews yet. Be the first!

Top 100 LeetCode + HackerRank Problems
BOTH
₹15,000
Enroll — ₹15,000
✨ 1-year access · Free updates included

30-day money back guarantee

Duration 90 Days
Format Both Classes
Trainer Expert Trainer
Students 0 enrolled
Language Telugu / English
Certificate On completion
Placement 78% rate
Share