All
Articles 118,229Blog Posts 125,766Tech Tutorials 30,246Research Papers 23,714News 17,293
⚡ AI Lessons

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 235: Lowest Common Ancestor Of A Binary Search Tree — Step-by-Step Visual Trace
Find the lowest common ancestor (LCA) of two given nodes in a binary search tree, where the LCA is the deepest node that has both nodes as descendants.

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 206: Reverse Linked List — Step-by-Step Visual Trace
Watch pointers move through a linked list reversal line by line. Interactive visualization with TraceLit.

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 1046: Last Stone Weight — Step-by-Step Visual Trace
Given an array of stone weights, repeatedly smash the two heaviest stones together until at most one stone remains, returning the weight of the last stone or 0

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 207: Course Schedule — Step-by-Step Visual Trace
Determine if it''s possible to finish all courses given a list of prerequisite pairs, where each pair [a,b] indicates course a requires course b to be completed

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 322: Coin Change — Step-by-Step Visual Trace
Given an array of coin denominations and a target amount, find the minimum number of coins needed to make up that amount, or return -1 if it''s impossible.

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 212: Word Search Ii — Step-by-Step Visual Trace
Given a 2D board of characters and a list of words, find all words from the list that can be formed by sequentially adjacent letters on the board, where each ce

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 286: Walls And Gates — Step-by-Step Visual Trace
Fill each empty room with the distance to its nearest gate, where rooms are represented by a 2D grid with gates (0), walls (-1), and empty rooms (INF).

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 62: Unique Paths — Step-by-Step Visual Trace
Find the number of unique paths from the top-left corner to the bottom-right corner of an m x n grid, where you can only move right or down.

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 42: Trapping Rain Water — Step-by-Step Visual Trace
Given an elevation map represented by an array of non-negative integers, calculate how much water can be trapped after raining.

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 130: Surrounded Regions — Step-by-Step Visual Trace
Given a 2D board containing ''X'' and ''O'', capture all regions of ''O'' that are completely surrounded by ''X'' by flipping them to ''X''. Regions connected t

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 416: Partition Equal Subset Sum — Step-by-Step Visual Trace
Given an integer array, determine if it can be partitioned into two subsets with equal sum.

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 417: Pacific Atlantic Water Flow — Step-by-Step Visual Trace
Find all cells in a 2D matrix where rainwater can flow to both the Pacific Ocean (left and top edges) and Atlantic Ocean (right and bottom edges), where water f

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 76: Minimum Window Substring — Step-by-Step Visual Trace
Find the minimum window substring in string s that contains all characters of string t. If no such window exists, return an empty string.

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 4: Median Of Two Sorted Arrays — Step-by-Step Visual Trace
Find the median of two sorted arrays without merging them into a single array. The overall run time complexity should be O(log (m+n)).

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 104: Maximum Depth Of Binary Tree — Step-by-Step Visual Trace
Given the root of a binary tree, return its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthe

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 5: Longest Palindromic Substring — Step-by-Step Visual Trace
Given a string, find and return the longest contiguous substring that reads the same forwards and backwards (palindrome).

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 55: Jump Game — Step-by-Step Visual Trace
Given an array of non-negative integers where each element represents the maximum jump length from that position, determine if you can reach the last index star

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 213: House Robber Ii — Step-by-Step Visual Trace
Find the maximum amount of money you can rob from houses arranged in a circle, where you cannot rob two adjacent houses and the first and last houses are neighb

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 72: Edit Distance — Step-by-Step Visual Trace
Given two strings word1 and word2, return the minimum number of operations required to convert word1 to word2. The allowed operations are insert, delete, or rep

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 853: Car Fleet — Step-by-Step Visual Trace
Given cars at different positions with different speeds all heading to the same target, determine how many car fleets will arrive at the target. Cars form a fle

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 269: Alien Dictionary — Step-by-Step Visual Trace
Given a list of words from an alien language sorted lexicographically, determine the order of letters in the alien alphabet. Return the alien dictionary as a st

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 139: Word Break — Step-by-Step Visual Trace
Given a string s and a dictionary of words wordDict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 167: Two Sum Ii Input Array Is Sorted — Step-by-Step Visual Trace
Find two numbers in a sorted array that add up to a specific target value, returning their 1-indexed positions.

Dev.to · tracelit
⚡ Algorithms & Data Structures
⚡ AI Lesson
3mo ago
LeetCode 494: Target Sum — Step-by-Step Visual Trace
Given an integer array nums and a target integer, find the number of ways to assign ''+'' or ''-'' signs to each element so that the sum equals the target.
DeepCamp AI