✕ Clear all filters
51 articles
▶ Videos →

📰 Dev.to · tracelit

51 articles · Updated every 3 hours · View all reads

All Articles 118,229Blog Posts 125,766Tech Tutorials 30,246Research Papers 23,714News 17,293 ⚡ AI Lessons
LeetCode 322: Coin Change — Step-by-Step Visual Trace
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.
LeetCode 212: Word Search Ii — Step-by-Step Visual Trace
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
LeetCode 286: Walls And Gates — Step-by-Step Visual Trace
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).
LeetCode 62: Unique Paths — Step-by-Step Visual Trace
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.
LeetCode 42: Trapping Rain Water — Step-by-Step Visual Trace
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.
LeetCode 130: Surrounded Regions — Step-by-Step Visual Trace
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
LeetCode 416: Partition Equal Subset Sum — Step-by-Step Visual Trace
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.
LeetCode 417: Pacific Atlantic Water Flow — Step-by-Step Visual Trace
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
LeetCode 76: Minimum Window Substring — Step-by-Step Visual Trace
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.
LeetCode 4: Median Of Two Sorted Arrays — Step-by-Step Visual Trace
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)).
LeetCode 104: Maximum Depth Of Binary Tree — Step-by-Step Visual Trace
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
LeetCode 5: Longest Palindromic Substring — Step-by-Step Visual Trace
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).
LeetCode 55: Jump Game — Step-by-Step Visual Trace
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
LeetCode 213: House Robber Ii — Step-by-Step Visual Trace
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
LeetCode 72: Edit Distance — Step-by-Step Visual Trace
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
LeetCode 853: Car Fleet — Step-by-Step Visual Trace
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
LeetCode 269: Alien Dictionary — Step-by-Step Visual Trace
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
LeetCode 139: Word Break — Step-by-Step Visual Trace
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.
LeetCode 167: Two Sum Ii Input Array Is Sorted — Step-by-Step Visual Trace
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.
LeetCode 494: Target Sum — Step-by-Step Visual Trace
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.