129 articles

📰 Dev.to · tracelit

Articles from Dev.to · tracelit · 129 articles · Updated every 3 hours · View all reads

All ⚡ AI Lessons (9011) ArXiv cs.AIDev.to · FORUM WEBForbes InnovationOpenAI NewsDev.to AIHugging Face Blog
LeetCode 20: Valid Parentheses — Step-by-Step Visual Trace
Dev.to · tracelit 2d ago
LeetCode 20: Valid Parentheses — Step-by-Step Visual Trace
Determine if a string containing only parentheses characters is valid, where every opening bracket has a corresponding closing bracket in the correct order.
LeetCode 239: Sliding Window Maximum — Step-by-Step Visual Trace
Dev.to · tracelit 2d ago
LeetCode 239: Sliding Window Maximum — Step-by-Step Visual Trace
Find the maximum element in each sliding window of size k as it moves from left to right through an array. Return an array containing the maximum value for each
LeetCode 206: Reverse Linked List — Step-by-Step Visual Trace
Dev.to · tracelit 2d 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.
LeetCode 191: Number Of 1 Bits — Step-by-Step Visual Trace
Dev.to · tracelit 2d 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 56: Merge Intervals — Step-by-Step Visual Trace
Dev.to · tracelit 2d ago
LeetCode 56: Merge Intervals — Step-by-Step Visual Trace
Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals and return an array of the non-overlapping intervals that cover
LeetCode 1046: Last Stone Weight — Step-by-Step Visual Trace
Dev.to · tracelit 2d 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 97: Interleaving String — Step-by-Step Visual Trace
Dev.to · tracelit 2d ago
LeetCode 97: Interleaving String — Step-by-Step Visual Trace
Given three strings s1, s2, and s3, determine if s3 can be formed by interleaving the characters of s1 and s2 while maintaining the relative order of characters
LeetCode 207: Course Schedule — Step-by-Step Visual Trace
Dev.to · tracelit 2d 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 2d 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 2d 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 2d 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 2d 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 2d 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 2d 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 78: Subsets — Step-by-Step Visual Trace
Dev.to · tracelit 2d ago
LeetCode 78: Subsets — Step-by-Step Visual Trace
Given an integer array nums of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets and can be retu
LeetCode 33: Search In Rotated Sorted Array — Step-by-Step Visual Trace
Dev.to · tracelit 2d ago
LeetCode 33: Search In Rotated Sorted Array — Step-by-Step Visual Trace
Find the index of a target value in a rotated sorted array, where a sorted array has been rotated at some pivot point. Return -1 if the target is not found.
LeetCode 994: Rotting Oranges — Step-by-Step Visual Trace
Dev.to · tracelit 2d ago
LeetCode 994: Rotting Oranges — Step-by-Step Visual Trace
Given a 2D grid representing oranges where 0=empty, 1=fresh orange, 2=rotten orange, determine the minimum time in minutes for all fresh oranges to rot, or retu
LeetCode 143: Reorder List — Step-by-Step Visual Trace
Dev.to · tracelit 2d ago
LeetCode 143: Reorder List — Step-by-Step Visual Trace
Given the head of a singly linked list, reorder it by alternating nodes from the beginning and end of the list in-place.
LeetCode 238: Product Of Array Except Self — Step-by-Step Visual Trace
Dev.to · tracelit 2d ago
LeetCode 238: Product Of Array Except Self — Step-by-Step Visual Trace
Given an integer array nums, return an array where each element is the product of all elements in the original array except the element at that index. The solut
LeetCode 416: Partition Equal Subset Sum — Step-by-Step Visual Trace
Dev.to · tracelit 2d 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.