Huachen Wang

LeetCode Study Note | Problem 743: Network Delay Time

๐Ÿ“˜ Problem Overview You are given a directed, weighted graph with n nodes (1-indexed), and a list of travel times times, where each element is [u, v,

Administrator Administrator Published on 2025-05-19

LeetCode Study Note | Problem 45: Jump Game II

๐Ÿงฉ Problem Summary You are given an integer array nums where each element represents your maximum jump length at that position. Your goal is to return

Administrator Administrator Published on 2025-05-19

LeetCode Study Note | Problem 55: Jump Game

๐Ÿง  Problem Overview Youโ€™re given an integer array nums, where each element represents the maximum jump length from that position. Starting at index 0,

Administrator Administrator Published on 2025-05-19

LeetCode Study Note | Problem 198: House Robber

๐Ÿ  Problem Overview You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, but adjacen

Administrator Administrator Published on 2025-05-18

LeetCode Study Note | Problem 207: Course Schedule

Problem Summary You are given numCourses courses labeled from 0 to numCourses - 1, and a list of prerequisites where each element is a pair [a, b] mea

Administrator Administrator Published on 2025-05-17

LeetCode Study Note | Problem 994: Rotting Oranges

๐Ÿ” Problem Overview Youโ€™re given an m x n grid, where: 0 represents an empty cell 1 represents a fresh orange 2 represents a rotten orange Each minute

Administrator Administrator Published on 2025-05-17

LeetCode Study Note | Problem 200: Number of Islands

๐ŸŒŠ Problem Summary You are given a 2D grid consisting of '1's (land) and '0's (water). An island is formed by connecting adjacent lands horizontally o

Administrator Administrator Published on 2025-05-17

LeetCode Study Note | Problem 15: 3Sum

โœจ Problem Description Given an integer array nums, return all the unique triplets [nums[i], nums[j], nums[k]] such that i โ‰  j โ‰  k, and nums[i] + nums[

Administrator Administrator Published on 2025-05-15

LeetCode Study Note | Problem 283: Move Zeroes

๐Ÿงฉ Problem Description Given an integer array nums, move all 0โ€™s to the end of it while maintaining the relative order of the non-zero elements. Examp

Administrator Administrator Published on 2025-05-15

LeetCode Study Note | Problem 128: Longest Consecutive Sequence

๐Ÿ“Œ Problem Summary Given an unsorted array of integers, find the length of the longest consecutive elements sequence. Time complexity must be O(n). Ex

Administrator Administrator Published on 2025-05-12