Author: Administrator

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-13

LeetCode Study Note | Problem 49: Group Anagrams

🧩 Problem Summary Given an array of strings, group the anagrams together. Anagram: A word formed by rearranging the letters of another word (e.g., "e

Administrator Administrator Published on 2025-05-13

LeetCode Study Note | Problem 2: Add Two Numbers

🧠 Problem Summary Given two non-empty linked lists representing two non-negative integers in reverse order (each node contains a single digit), retur

Administrator Administrator Published on 2025-05-12

LeetCode Study Note | Problem 42: Trapping Rain Water

πŸ” Problem Description Given a non-negative integer array height[] representing the elevation map where the width of each bar is 1, compute how much w

Administrator Administrator Published on 2025-05-11

LeetCode Study Note | Problem 53: Maximum Subarray

Problem Overview Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its s

Administrator Administrator Published on 2025-05-10
Previous Next