Description Word Ladder A transformation sequence from word beginWord to word...
Description Course Schedule There are a total of numCourses courses you have t...
Description Number of Islands Given an m x n 2D binary grid grid which represe...
Description Clone Graph Given a reference of a node in a connected undirected...
Description Symmetric Tree Given the root of a binary tree, check whether it i...
Description Same Tree Given the roots of two binary trees p and q, write a fun...
Description Insert into a Binary Search Tree You are given the root node of a...
Description Validate Binary Search Tree Given the root of a binary tree, deter...
Description Maximum Depth of Binary Tree Given the root of a binary tree, retu...
Description Binary Tree Inorder Traversal Given the root of a binary tree, ret...
Description Longest Happy String A string s is called happy if it satisfies th...
Description Group Anagrams Given an array of strings strs, group theanagrams t...
Description Top K Frequent Elements Given an integer array nums and an integer...
Description Longest Substring Without Repeating Characters Given a string s, f...
Description Two Sum II - Input Array Is Sorted Given a 1-indexed array of inte...
☆(≧∀≦*)ノ嗨,我是wec,今天是DAY 30,最後一天嚕! 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個字符串表示的數學表達式,包含非負整...
ヾ(・∀・)ノ嗨,我是wec,今天是DAY 29。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個整數數組temperatures,表示每天的溫度...
(*・∀-)b嗨,我是wec,今天是DAY 28。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個表示逆波蘭表示法的數字和運算符的列表,請計算並返...
。・∀・)ノ゛嗨,我是wec,今天是DAY 27。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個只包含數字的字符串,請將其還原為所有可能的有效的...
(^-^)ゞ嗨,我是wec,今天是DAY 26。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個可包含重複數字的整數數組nums,返回這些數字的所...
(*・∀-)b嗨,我是wec,今天是DAY 25。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定兩個整數n和k,返回從1到n中選擇k個數字的所有組合...
(人・∀・)嗨,我是wec,今天是DAY 24。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 在一個 m x n 的網格中,每個單元格可以有以下三種狀態...
前言 今天我們要來解一個二元樹的題目,叫做 Symmetric Tree。 這題其實還滿有趣的,因為它要我們檢查一棵樹是不是「對稱的」,也就是說這棵樹的左邊...
ヾ(^▽^ヾ)嗨,我是wec,今天是DAY 23。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 一個由0和1組成的二維矩陣,0代表水,1代表陸地。矩陣中...
๑◔◡◔๑嗨,我是wec,今天是DAY 22。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個二叉樹,返回從右側看這棵樹所能看到的節點值的列表。...
٩(๑> ₃ <)۶з嗨,我是wec,今天是DAY 21。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個整數數組prices,表示每...
前言 嘿嘿~今天我們要來挑戰一個有趣的設計題目!你是否曾經想過,要設計一個特別的堆疊,不僅能執行一般的 push 和 pop 操作,還能在 O(1) 時間內快...
⸜(ˊᗜˋ)⸝嗨,我是wec,今天是DAY 20。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個整數數組 prices,其中 prices[i]...
( ੭ ˙ᗜ˙ )੭嗨,我是wec,今天是DAY 19。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個整數數組nums,找出其擺動序列的最大長度...
٩꒰。•◡•。꒱۶嗨,我是wec,今天是DAY 18。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定四個整數數組nums1,nums2,nums3,...