題目敘述 題目敘述到我們有兩個字串 ransomNote 和 magazine 假設 ransomNote 可以透過 magazine 則回傳 True 否...
題目敘述 我們必須透過已知的一個 graph 來建立一個一模一樣的 graph 但我們所回傳的 graph 不能是原本的 graph 解題思路 當遇到尋...
題目敘述 給定一個字串 s,請找出其中不包含重複字元的最長子字串的長度。 解題思路 這題的標籤包含: Hash Table String Slidin...
題目敘述 給定一個整數陣列 nums 和一個整數 target,請找出陣列中兩個數字的索引值,使得這兩個數字加總起來剛好等於 target。 每筆測資保證...
一、學習目標 了解 BFS(Breadth-First Search) 在無權圖求最短邊數路徑的原理與不變量。 熟悉四種常見套路:網格 BFS、一般圖 BFS...
Description Edit Distance Given two strings word1 and word2, return the minimu...
Description Longest Increasing Subsequence Given an integer array nums, return...
Descriptoin House Robber You are a professional robber planning to rob houses...
Description Climbing Stairs You are climbing a staircase. It takes n steps to...
Description Find Minimum in Rotated Sorted Array Suppose an array of length n...
Description 704. Binary Search Easy Topics Companies Given an array of integers...
Description Sort Colors Given an array nums with n objects colored red, white,...
Description Merge Sorted Array You are given two integer arrays nums1 and nums...
Description Pacific Atlantic Water Flow There is an m x n rectangular island t...
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 題目描述: 給定一個字符串表示的數學表達式,包含非負整...