iT邦幫忙

leetcode相關文章
共有 1110 則文章

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Word Ladder

Description Word Ladder A transformation sequence from word beginWord to word...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Course Schedule

Description Course Schedule There are a total of numCourses courses you have t...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Number of Islands

Description Number of Islands Given an m x n 2D binary grid grid which represe...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Clone Graph

Description Clone Graph Given a reference of a node in a connected undirected...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Symmetric Tree

Description Symmetric Tree Given the root of a binary tree, check whether it i...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Same Tree

Description Same Tree Given the roots of two binary trees p and q, write a fun...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Validate Binary Search Tree

Description Validate Binary Search Tree Given the root of a binary tree, deter...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Maximum Depth of Binary Tree

Description Maximum Depth of Binary Tree Given the root of a binary tree, retu...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Longest Happy String

Description Longest Happy String A string s is called happy if it satisfies th...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Group Anagrams

Description Group Anagrams Given an array of strings strs, group theanagrams t...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Top K Frequent Elements

Description Top K Frequent Elements Given an integer array nums and an integer...

技術 DAY 30:Basic Calculator II 沒在排隊的LIFO堆疊!

☆(≧∀≦*)ノ嗨,我是wec,今天是DAY 30,最後一天嚕! 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個字符串表示的數學表達式,包含非負整...

技術 DAY 29:Daily Temperatures 沒在排隊的LIFO堆疊!

ヾ(・∀・)ノ嗨,我是wec,今天是DAY 29。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個整數數組temperatures,表示每天的溫度...

技術 DAY 28:Evaluate Reverse Polish Notation 沒在排隊的LIFO堆疊!

(*・∀-)b嗨,我是wec,今天是DAY 28。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個表示逆波蘭表示法的數字和運算符的列表,請計算並返...

技術 DAY 27:Restore IP Addresses 經一事長一智的回溯法!

。・∀・)ノ゛嗨,我是wec,今天是DAY 27。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個只包含數字的字符串,請將其還原為所有可能的有效的...

技術 DAY 26:Permutations II 經一事長一智的回溯法!

(^-^)ゞ嗨,我是wec,今天是DAY 26。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個可包含重複數字的整數數組nums,返回這些數字的所...

技術 DAY 25:Combinations 經一事長一智的回溯法!

(*・∀-)b嗨,我是wec,今天是DAY 25。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定兩個整數n和k,返回從1到n中選擇k個數字的所有組合...

技術 DAY 24:Rotting Oranges佇列排排站!

(人・∀・)嗨,我是wec,今天是DAY 24。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 在一個 m x n 的網格中,每個單元格可以有以下三種狀態...

技術 Day30 X Leetcode:對稱二元樹 Symmetric Tree

前言 今天我們要來解一個二元樹的題目,叫做 Symmetric Tree。 這題其實還滿有趣的,因為它要我們檢查一棵樹是不是「對稱的」,也就是說這棵樹的左邊...

技術 DAY 23:Shortest Bridge 佇列排排站!

ヾ(^▽^ヾ)嗨,我是wec,今天是DAY 23。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 一個由0和1組成的二維矩陣,0代表水,1代表陸地。矩陣中...

技術 DAY 22:Binary Tree Right Side View 佇列排排站!

๑◔◡◔๑嗨,我是wec,今天是DAY 22。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個二叉樹,返回從右側看這棵樹所能看到的節點值的列表。...

技術 DAY 21:Best Time to Buy and Sell Stock with Transaction Fee 永遠不回頭的貪婪演算法!

٩(๑> ₃ <)۶з嗨,我是wec,今天是DAY 21。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個整數數組prices,表示每...

技術 Day29 X Leetcode:最小棧 Min Stack

前言 嘿嘿~今天我們要來挑戰一個有趣的設計題目!你是否曾經想過,要設計一個特別的堆疊,不僅能執行一般的 push 和 pop 操作,還能在 O(1) 時間內快...

技術 DAY 20:Best Time to Buy and Sell Stock II 永遠不回頭的貪婪演算法!

⸜(ˊᗜˋ)⸝嗨,我是wec,今天是DAY 20。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個整數數組 prices,其中 prices[i]...

技術 DAY 19: Wiggle Subsequence 永遠不回頭的貪婪演算法!

( ੭ ˙ᗜ˙ )੭嗨,我是wec,今天是DAY 19。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定一個整數數組nums,找出其擺動序列的最大長度...

技術 DAY 18: 4 Sum II 拼拼湊湊雜湊表!

٩꒰。•◡•。꒱۶嗨,我是wec,今天是DAY 18。 🔎 題目難度與描述 難度:MEDIUM 題目描述: 給定四個整數數組nums1,nums2,nums3,...