原创 LeetCode #254 Factor Combinations 因子的組合 254 Factor Combinations 因子的組合
254 Factor Combinations 因子的組合 Description: Numbers can be regarded as the product of their factors. For example, 8 = 2 x
原创 LeetCode #265 Paint House II 粉刷房子 II 265 Paint House II 粉刷房子 II
265 Paint House II 粉刷房子 II Description: There are a row of n houses, each house can be painted with one of the k colors.
原创 LeetCode #1366 Rank Teams by Votes 通過投票對團隊排名 1366 Rank Teams by Votes 通過投票對團隊排名
1366 Rank Teams by Votes 通過投票對團隊排名 Description: In a special ranking system, each voter gives a rank from highest to low
原创 LeetCode #267 Palindrome Permutation II 迴文排列 II 267 Palindrome Permutation II 迴文排列 II
267 Palindrome Permutation II 迴文排列 II Description: Given a string s, return all the palindromic permutations (without du
原创 LeetCode #156 Binary Tree Upside Down 上下翻轉二叉樹 156 Binary Tree Upside Down 上下翻轉二叉樹
156 Binary Tree Upside Down 上下翻轉二叉樹 Description: Given the root of a binary tree, turn the tree upside down and return t
原创 LeetCode #250 Count Univalue Subtrees 統計同值子樹 250 Count Univalue Subtrees 統計同值子樹
250 Count Univalue Subtrees 統計同值子樹 Description: Given the root of a binary tree, return the number of uni-value subtrees
原创 LeetCode #1367 Linked List in Binary Tree 二叉樹中的鏈表 1367 Linked List in Binary Tree 二叉樹中的鏈表
1367 Linked List in Binary Tree 二叉樹中的鏈表 Description: Given a binary tree root and a linked list with head as the first n
原创 LeetCode #269 Alien Dictionary 火星詞典 269 Alien Dictionary 火星詞典
269 Alien Dictionary 火星詞典 Description: There is a new alien language that uses the English alphabet. However, the order
原创 LeetCode #957 Prison Cells After N Days N 天后的牢房 957 Prison Cells After N Days N 天后的牢房
957 Prison Cells After N Days N 天后的牢房 Description: There are 8 prison cells in a row and each cell is either occupied or
原创 LeetCode #956 Tallest Billboard 最高的廣告牌 956 Tallest Billboard 最高的廣告牌
956 Tallest Billboard 最高的廣告牌 Description: You are installing a billboard and want it to have the largest height. The bil
原创 LeetCode #955 Delete Columns to Make Sorted II 刪列造序 II 955 Delete Columns to Make Sorted II 刪列造序 II
955 Delete Columns to Make Sorted II 刪列造序 II Description: You are given an array of n strings strs, all of the same leng
原创 LeetCode #954 Array of Doubled Pairs 二倍數對數組 954 Array of Doubled Pairs 二倍數對數組
954 Array of Doubled Pairs 二倍數對數組 Description: Given an integer array of even length arr, return true if it is possible
原创 LeetCode #951 Flip Equivalent Binary Trees 翻轉等價二叉樹 951 Flip Equivalent Binary Trees 翻轉等價二叉樹
951 Flip Equivalent Binary Trees 翻轉等價二叉樹 Description: For a binary tree T, we can define a flip operation as follows: ch
原创 LeetCode #948 Bag of Tokens 令牌放置 948 Bag of Tokens 令牌放置
948 Bag of Tokens 令牌放置 Description: You have an initial power of power, an initial score of 0, and a bag of tokens where
原创 LeetCode #946 Validate Stack Sequences 驗證棧序列 946 Validate Stack Sequences 驗證棧序列
946 Validate Stack Sequences 驗證棧序列 Description: Given two integer arrays pushed and popped each with distinct values, re