129 articles

📰 Dev.to · tracelit

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

All ⚡ AI Lessons (10119) ArXiv cs.AIDev.to · FORUM WEBForbes InnovationDev.to AIOpenAI NewsHugging Face Blog
LeetCode 104: Maximum Depth Of Binary Tree — Step-by-Step Visual Trace
Dev.to · tracelit 3d 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 3d 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 128: Longest Consecutive Sequence — Step-by-Step Visual Trace
Dev.to · tracelit 3d ago
LeetCode 128: Longest Consecutive Sequence — Step-by-Step Visual Trace
Given an unsorted array of integers, find the length of the longest sequence of consecutive elements. The algorithm must run in O(n) time complexity.
LeetCode 215: Kth Largest Element In An Array — Step-by-Step Visual Trace
Dev.to · tracelit 3d ago
LeetCode 215: Kth Largest Element In An Array — Step-by-Step Visual Trace
Find the kth largest element in an unsorted array. Note that it is the kth largest element in sorted order, not the kth distinct element.
LeetCode 55: Jump Game — Step-by-Step Visual Trace
Dev.to · tracelit 3d 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 3d 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 3d 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 3d 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 355: Design Twitter — Step-by-Step Visual Trace
Dev.to · tracelit 3d ago
LeetCode 355: Design Twitter — Step-by-Step Visual Trace
Design a simplified Twitter system that supports posting tweets, following/unfollowing users, and retrieving a user''s news feed containing the 10 most recent t
LeetCode 1448: Count Good Nodes In Binary Tree — Step-by-Step Visual Trace
Dev.to · tracelit 3d 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
LeetCode 105: Construct Binary Tree From Preorder And Inorder Traversal — Step-by-Step Visual Trace
Dev.to · tracelit 3d ago
LeetCode 105: Construct Binary Tree From Preorder And Inorder Traversal — Step-by-Step Visual Trace
Given two arrays representing preorder and inorder traversals of a binary tree, reconstruct and return the original binary tree.
LeetCode 853: Car Fleet — Step-by-Step Visual Trace
Dev.to · tracelit 3d 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 124: Binary Tree Maximum Path Sum — Step-by-Step Visual Trace
Dev.to · tracelit 3d 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
LeetCode 269: Alien Dictionary — Step-by-Step Visual Trace
Dev.to · tracelit 3d 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 79: Word Search — Step-by-Step Visual Trace
Dev.to · tracelit 3d ago
LeetCode 79: Word Search — Step-by-Step Visual Trace
Given a 2D board of characters and a target word, determine if the word exists in the grid by connecting adjacent cells horizontally or vertically.
LeetCode 127: Word Ladder — Step-by-Step Visual Trace
Dev.to · tracelit 3d ago
LeetCode 127: Word Ladder — Step-by-Step Visual Trace
Find the length of the shortest transformation sequence from beginWord to endWord, where each transformation changes exactly one letter and each intermediate wo
LeetCode 139: Word Break — Step-by-Step Visual Trace
Dev.to · tracelit 3d 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 98: Validate Binary Search Tree — Step-by-Step Visual Trace
Dev.to · tracelit 3d ago
LeetCode 98: Validate Binary Search Tree — Step-by-Step Visual Trace
Given the root of a binary tree, determine if it is a valid binary search tree where all left descendants are less than the node and all right descendants are g
LeetCode 678: Valid Parenthesis String — Step-by-Step Visual Trace
Dev.to · tracelit 3d 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.
LeetCode 125: Valid Palindrome — Step-by-Step Visual Trace
Dev.to · tracelit 3d ago
LeetCode 125: Valid Palindrome — Step-by-Step Visual Trace
Determine if a given string is a valid palindrome, considering only alphanumeric characters and ignoring cases. A palindrome reads the same forward and backward