All
Articles 135,573Blog Posts 140,128Tech Tutorials 35,172Research Papers 26,166News 19,087
⚡ AI Lessons

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.

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

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.

Dev.to · tracelit
📐 ML Fundamentals
⚡ AI Lesson
3mo ago
LeetCode 1448: Count Good Nodes In Binary Tree — Step-by-Step Visual Trace
Count the number of ''good'' nodes in a binary tree, where a node is considered good if there are no nodes with a value greater than it in the path from root to

Dev.to · tracelit
📐 ML Fundamentals
⚡ AI Lesson
3mo ago
LeetCode 124: Binary Tree Maximum Path Sum — Step-by-Step Visual Trace
Find the maximum sum of any path in a binary tree, where a path is defined as any sequence of nodes connected by parent-child relationships. The path can start

Dev.to · tracelit
📐 ML Fundamentals
⚡ AI Lesson
3mo ago
LeetCode 678: Valid Parenthesis String — Step-by-Step Visual Trace
Determine if a string containing parentheses ''('', '')'', and wildcards ''*'' is valid, where ''*'' can represent ''('', '')'', or an empty string.

Dev.to · tracelit
📐 ML Fundamentals
⚡ AI Lesson
3mo ago
LeetCode 347: Top K Frequent Elements — Step-by-Step Visual Trace
Given an array of integers and a number k, return the k most frequently occurring elements in the array.

Dev.to · tracelit
📐 ML Fundamentals
⚡ AI Lesson
3mo ago
LeetCode 371: Sum Of Two Integers — Step-by-Step Visual Trace
Calculate the sum of two integers without using the + or - operators, implementing addition using only bitwise operations.

Dev.to · tracelit
📐 ML Fundamentals
⚡ AI Lesson
3mo ago
LeetCode 567: Permutation In String — Step-by-Step Visual Trace
Given two strings s1 and s2, return true if s2 contains a permutation of s1. A permutation is a rearrangement of characters, so we need to find if any substring

Dev.to · tracelit
📐 ML Fundamentals
⚡ AI Lesson
3mo ago
LeetCode 200: Number Of Islands — Step-by-Step Visual Trace
Given a 2D grid map of ''1''s (land) and ''0''s (water), count the number of islands where an island is surrounded by water and formed by connecting adjacent la

Dev.to · tracelit
📐 ML Fundamentals
⚡ AI Lesson
3mo ago
LeetCode 146: Lru Cache — Step-by-Step Visual Trace
Design and implement a data structure for Least Recently Used (LRU) cache that supports get and put operations in O(1) time complexity.

Dev.to · tracelit
📐 ML Fundamentals
⚡ AI Lesson
3mo ago
LeetCode 424: Longest Repeating Character Replacement — Step-by-Step Visual Trace
Find the length of the longest substring containing the same letter that you can get after performing at most k character replacements. You can replace any char

Dev.to · tracelit
📐 ML Fundamentals
⚡ AI Lesson
3mo ago
LeetCode 134: Gas Station — Step-by-Step Visual Trace
Find the starting gas station index from which you can complete a circular trip, where each station has gas to collect and cost to travel to the next station.

Dev.to · tracelit
📐 ML Fundamentals
⚡ AI Lesson
3mo ago
LeetCode 295: Find Median From Data Stream — Step-by-Step Visual Trace
Design a data structure that supports adding integers from a data stream and finding the median of all elements added so far in constant time.

Dev.to · tracelit
📐 ML Fundamentals
⚡ AI Lesson
3mo ago
LeetCode 739: Daily Temperatures — Step-by-Step Visual Trace
Given an array of daily temperatures, return an array where each element represents how many days you have to wait until a warmer temperature. If there is no fu
DeepCamp AI