✕ Clear all filters
75 articles
▶ Videos →

📰 Dev.to · tracelit

75 articles · Updated every 3 hours · View all reads

All Articles 132,244Blog Posts 136,914Tech Tutorials 34,271Research Papers 25,930News 18,728 ⚡ AI Lessons
LeetCode 191: Number Of 1 Bits — Step-by-Step Visual Trace
Dev.to · tracelit 📐 ML Fundamentals ⚡ AI Lesson 3mo ago
LeetCode 191: Number Of 1 Bits — Step-by-Step Visual Trace
Given a positive integer n, count and return the number of set bits (1s) in its binary representation.
LeetCode 1046: Last Stone Weight — Step-by-Step Visual Trace
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
LeetCode 207: Course Schedule — Step-by-Step Visual Trace
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
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 1584: Min Cost To Connect All Points — Step-by-Step Visual Trace
Dev.to · tracelit 📐 ML Fundamentals ⚡ AI Lesson 3mo ago
LeetCode 1584: Min Cost To Connect All Points — Step-by-Step Visual Trace
Find the minimum cost to connect all points in a 2D plane where the cost between any two points is the Manhattan distance (sum of absolute differences of coordi
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 49: Group Anagrams — Step-by-Step Visual Trace
Dev.to · tracelit 📐 ML Fundamentals ⚡ AI Lesson 3mo ago
LeetCode 49: Group Anagrams — Step-by-Step Visual Trace
Group anagrams together from an array of strings, where anagrams are words that contain the same characters in different orders.
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