Track · LeetCode

Interview prep. Communicate the trade-offs, not just the answer.

Walkthroughs that explain the thinking, not just the code. New problems every Tuesday.

7 free courses · 1 paid course · updated weekly
All Arrays Conditionals Sieves Strings Trees Graphs DP Greedy Bit Manipulation System Design
All levels Easy Medium Hard

Courses

Multi-video · project-based
Free
Easy

3880. Minimum Absolute Difference Between Two Values

We iterate from a nested-loop pair check to a single-pass scan that only remembers the most recent 1 and 2. The "last-s…

1 videos ·
Free
Easy

3884. First Matching Character From Both Ends

We iterate from a full-string scan to a half-string walk by noticing the mirror-index symmetry between `s[i]` and `s[n …

1 videos ·
Free
Easy

3894. Traffic Signal Color

We work through an if/elif ladder, then tighten the range checks using Python's chained-comparison syntax. The `a <= x …

1 videos ·
Free
Easy

3898. Find the Degree of Each Vertex

We sum each row of the adjacency matrix to read off every vertex's degree in one pass. The row-sum-equals-degree identi…

1 videos ·
Free
Easy

3903. Smallest Stable Index I

We iterate from a brute-force scan to a two-pass sweep that precomputes a right-min array and walks a running left-max.…

1 videos ·
Free
Easy

3908. Valid Digit Number

We cast the number to a string to check for the digit while guarding against a leading match. The "cast-to-string for d…

1 videos ·
Free
Easy

3912. Valid Elements in an Array

We iterate from a brute-force scan to a two-pass sweep that walks a running max from each end. The "two-pass running ma…

1 videos ·

Want the LeetCode digest?

One email each Friday with the week's new LeetCode tutorials. Topic-tagged at signup.