标签: leetcode
-
LeetCode13-Longest-Common-Prefix
Write a function to find the longest common prefix stri…
-
Leetcode-PHP题解D64-292-Nim-Game
假设你和朋友玩一个捡石头的游戏,你和朋友轮流拿1~3颗石头。拿到最后一颗石头的一方为剩方。第一轮由你开始捡石头…
-
leetcode445-Add-Two-Numbers-II
链表形式跟非链表形式的最大区别在于我们无法根据下标来访问对应下标的元素。假如我们希望从后往前对每个位置求和,则…
-
Leetcode-PHP题解D62-976-Largest-Perimeter-Triangle
D62 976. Largest Perimeter Triangle 题目链接 976. Largest P…
-
Leetcode-PHP题解D61-953-Verifying-an-Alien-Dictionary
D61 953. Verifying an Alien Dictionary 题目链接 953. Verify…
-
数据结构与算法LeetCode-格雷编码No89
格雷编码是一个二进制数字系统,在该系统中,两个连续的数值仅有一个位数的差异。给定一个代表编码总位数的非负整数 …
-
Leetcode-PHP题解D60-824-Goat-Latin
D60 824. Goat Latin 题目链接 824. Goat Latin 题目分析 给定一个句子,由大…
-
Leetcode-PHP题解D59-226-Invert-Binary-Tree
D59 226. Invert Binary Tree 题目链接 226. Invert Binary Tre…
-
LeetCode11Container-With-Most-Water
Given n non-negative integers a1, a2, …, an , where e…
-
数据结构与算法LeetCode-种花问题No605
假设你有一个很长的花坛,一部分地块种植了花,另一部分却没有。可是,花卉不能种植在相邻的地块上,它们会争夺水源,…