标签: leetcode
-
LeetCode10Regular-Expression-Matching
Given an input string (s) and a pattern (p), implement …
-
Leetcode-PHP题解D58-693-Binary-Number-with-Alternating-Bits
判断给定的数字是否为奇数。 若为奇数,那么最低位(即最右)会为1,那么会重复出现01串。 若为偶数,最低位为0…
-
Leetcode-PHP题解D57-762-Prime-Number-of-Set-Bits-in
D57 762. Prime Number of Set Bits in Binary Representat…
-
Leetcode-PHP题解D56-637-Average-of-Levels-in-Binary-Tree
D56 637. Average of Levels in Binary Tree 题目链接 637. Ave…
-
leetCode第一题
将数组的遍历值当作key(为了存取好处理,所以将数组的遍历值当作key),索引当作value来存储。
-
Leetcode-PHP题解D55-429-Nary-Tree-Level-Order-Traversal
D55 429. N-ary Tree Level Order Traversal 题目链接 429. N-a…
-
Leetcode-PHP题解D54-937-Reorder-Log-Files
每一条日志的第一个部分为一个标识符(ID)。 剩余部分为: 全为小写字母的字符串(称为字符日志) 或 全为数字…
-
leetcode376-Wiggle-Subsequence
扭动序列是指数组中的相邻两个元素的差保证严格的正负交替,如[1,7,4,9,2,5]数组中相邻两个元素的差为6…
-
Leetcode-PHP题解D53-566-Reshape-the-Matrix
D53 566. Reshape the Matrix 题目链接 566. Reshape the Matri…
-
leetcode448-Find-All-Numbers-Disappeared-in-an-Array
假设一个长度为n的整数数组,数组中的元素的值位于[1,n]区间中。问,该数组中有哪些[1,n]区间中的整数没有…