📰 Dev.to · tracelit
Articles from Dev.to · tracelit · 129 articles · Updated every 3 hours · View all reads
All
⚡ AI Lessons (10165)
ArXiv cs.AIDev.to · FORUM WEBDev.to AIForbes InnovationOpenAI NewsHugging Face Blog

Dev.to · tracelit
4d ago
LeetCode 242: Valid Anagram — Step-by-Step Visual Trace
Determine if two strings are anagrams of each other, meaning they contain the exact same characters with the same frequencies but possibly in different orders.

Dev.to · tracelit
4d ago
LeetCode 1: Two Sum — Step-by-Step Visual Trace
Given an array of integers and a target sum, find the indices of two numbers in the array that add up to the target value. Each input has exactly one solution,

Dev.to · tracelit
4d 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.

Dev.to · tracelit
4d 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
4d ago
LeetCode 981: Time Based Key Value Store — Step-by-Step Visual Trace
Design a time-based key-value data structure that can store multiple values for the same key at different timestamps and retrieve the value associated with a ke

Dev.to · tracelit
4d 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.

Dev.to · tracelit
4d ago
LeetCode 778: Swim In Rising Water — Step-by-Step Visual Trace
Find the minimum time required to swim from the top-left corner to the bottom-right corner of a grid, where each cell has a water level and you can only move wh

Dev.to · tracelit
4d 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
4d ago
LeetCode 572: Subtree Of Another Tree — Step-by-Step Visual Trace
Given the roots of two binary trees, determine if the second tree (subRoot) is a subtree of the first tree (root). A subtree must include all descendants of a n

Dev.to · tracelit
4d ago
LeetCode 90: Subsets Ii — Step-by-Step Visual Trace
Given an integer array that may contain duplicates, return all possible subsets (the power set) without duplicate subsets in the result.

Dev.to · tracelit
4d ago
LeetCode 54: Spiral Matrix — Step-by-Step Visual Trace
Given an m x n matrix, return all elements of the matrix in spiral order, starting from the top-left corner and moving clockwise through each layer.

Dev.to · tracelit
4d ago
LeetCode 136: Single Number — Step-by-Step Visual Trace
Given an array of integers where every element appears twice except for one, find the single element that appears only once. The solution must run in linear tim

Dev.to · tracelit
4d ago
LeetCode 73: Set Matrix Zeroes — Step-by-Step Visual Trace
Given an m x n matrix, if an element is 0, set its entire row and column to 0. The modification must be done in-place.

Dev.to · tracelit
4d ago
LeetCode 74: Search A 2d Matrix — Step-by-Step Visual Trace
Given a 2D matrix where each row is sorted in ascending order and the first integer of each row is greater than the last integer of the previous row, determine

Dev.to · tracelit
4d ago
LeetCode 100: Same Tree — Step-by-Step Visual Trace
Given the roots of two binary trees p and q, determine if they are the same tree. Two binary trees are considered the same if they are structurally identical an

Dev.to · tracelit
4d ago
LeetCode 48: Rotate Image — Step-by-Step Visual Trace
Given an n x n 2D matrix representing an image, rotate the image by 90 degrees clockwise in-place without using extra space.

Dev.to · tracelit
4d ago
LeetCode 25: Reverse Nodes In K Group — Step-by-Step Visual Trace
Given the head of a linked list, reverse the nodes of the list k at a time, returning the modified list. If the number of remaining nodes is not a multiple of k

Dev.to · tracelit
4d ago
LeetCode 7: Reverse Integer — Step-by-Step Visual Trace
Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range, return 0.

Dev.to · tracelit
4d ago
LeetCode 190: Reverse Bits — Step-by-Step Visual Trace
Given a 32-bit unsigned integer, reverse the bits and return the resulting integer.

Dev.to · tracelit
4d ago
LeetCode 10: Regular Expression Matching — Step-by-Step Visual Trace
Given a string s and a pattern p, implement regular expression matching with support for ''.'' and ''*'' where ''.'' matches any single character and ''*'' matc

Dev.to · tracelit
4d ago
LeetCode 332: Reconstruct Itinerary — Step-by-Step Visual Trace
Given a list of airline tickets represented as pairs of departure and arrival airports, return the itinerary in order starting from JFK, using all tickets exact

Dev.to · tracelit
4d ago
LeetCode 50: Powx N — Step-by-Step Visual Trace
Implement a function to calculate x raised to the power n (x^n) efficiently. The function should handle both positive and negative exponents and return the resu

Dev.to · tracelit
4d ago
LeetCode 66: Plus One — Step-by-Step Visual Trace
Given a non-empty array of decimal digits representing a non-negative integer, increment the integer by one and return the resulting digits as an array.

Dev.to · tracelit
4d 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
DeepCamp AI