CodeMentor.
Ask AIProblemsLearnC++TCSCore CSHRProgress
0Lv 1

Practice

Problems

62 of 62 shown · every one has a lesson and a local judge

0

0% cleared62 to go

Arrays

Index thinking, in-place tricks, prefix patterns — your current strength zone. We deepen it.

0/14
  • Two SumNext upEasy
  • Contains DuplicateEasy
  • Best Time to Buy and Sell StockEasy
  • Plus OneEasy
  • Move ZeroesEasy
  • Rotate ArrayMedium
  • Maximum Subarray (Kadane)Medium
  • Missing NumberEasy
  • Single NumberEasy
  • Majority ElementEasy
  • Merge Sorted ArrayEasy
  • Sort ColorsMedium
  • Product of Array Except SelfMedium
  • Max Consecutive OnesEasy

Hashing

Trade space for time. Maps and sets turn O(n²) into O(n).

0/8
  • Two Sum (Hash Drill)Easy
  • Intersection of Two Arrays IIEasy
  • Group AnagramsMedium
  • Top K Frequent ElementsMedium
  • First Unique CharacterEasy
  • Isomorphic StringsEasy
  • Happy NumberEasy
  • Longest Consecutive SequenceMedium

Two Pointers

Two indices walking with a rule — sorted arrays and partitions.

0/7
  • Valid PalindromeEasy
  • Container With Most WaterMedium
  • 3SumMedium
  • Remove Duplicates from Sorted ArrayEasy
  • Two Sum II (Sorted)Medium
  • Squares of a Sorted ArrayEasy
  • Trapping Rain WaterHard

Sliding Window

Maintain a live window of interest. The gateway to string mastery.

0/6
  • Maximum Average Subarray IEasy
  • Longest Substring Without Repeating CharactersMedium
  • Minimum Window SubstringHard
  • Permutation in StringMedium
  • Max Consecutive Ones IIIMedium
  • Find All Anagrams in a StringMedium

Binary Search

Sorted world → log n. Lower/upper bound muscle memory.

0/3
  • Binary SearchEasy
  • Search Insert PositionEasy
  • Find First and Last PositionMedium

Stack & Monotonic Stack

LIFO + next greater patterns. Parentheses to daily temperatures.

0/3
  • Valid ParenthesesEasy
  • Min Stack (Design)Medium
  • Daily TemperaturesMedium

Linked List

Pointer surgery — reverse, merge, cycle detection.

0/3
  • Reverse Linked ListEasy
  • Merge Two Sorted ListsEasy
  • Linked List CycleEasy

Binary Trees

Recursion on left/right. Depth, invert, sameness.

0/3
  • Invert Binary TreeEasy
  • Maximum Depth of Binary TreeEasy
  • Same TreeEasy

Intro Dynamic Programming

After arrays: stairs, robber, coins — think subproblems.

0/3
  • Climbing StairsEasy
  • House RobberMedium
  • Coin ChangeMedium

HackerRank Warmup

Classic HackerRank-style problems for yuvrajshukla1702 — each one taught slowly, then coded.

0/12
  • Simple Array SumEasy
  • Compare the TripletsEasy
  • A Very Big SumEasy
  • Diagonal DifferenceEasy
  • Plus MinusEasy
  • StaircaseEasy
  • Mini-Max SumEasy
  • Birthday Cake CandlesEasy
  • Time ConversionEasy
  • Grading StudentsEasy
  • Sock MerchantEasy
  • Counting ValleysEasy