Tag: 算法
237 total results found
Leetcode PHP题解--D27 620. Not Boring Movies
620. Not Boring Movies 题目链接 620. Not Boring Movies 题目分析 前面铺垫了那么多,要...
Leetcode PHP题解--D26 766. Toeplitz Matrix
766. Toeplitz Matrix 题目链接 766. Toeplitz Matrix 题目分析 拓普利兹矩阵,应该不用多说了...
Leetcode PHP题解--D25 500. Keyboard Row
500. Keyboard Row 题目链接 500. Keyboard Row 题目分析 给定一个字符串数组,返回那些所出现的字母...
Leetcode PHP题解--D24 476. Number Complement
476. Number Complement 题目链接 476. Number Complement 题目分析 给定一个数字,将他转...
Leetcode PHP题解--D23 1. Two Sum
1. Two Sum 题目链接 1. Two Sum 题目分析 给一个数组A和一个数字n,从数组中找到两个数字,这两个数字相加之后等...
Leetcode PHP题解--D22 806. Number of Lines To Write String
806. Number of Lines To Write String 题目链接 806. Number of Lines To ...
Leetcode PHP题解--D21 344. Reverse String
344. Reverse String 题目链接 344. Reverse String 题目分析 题目要求以O(1)时间复杂度把字...
Leetcode PHP题解--D20 557. Reverse Words in a String III
557. Reverse Words in a String III 题目链接 557. Reverse Words in a St...
Leetcode PHP题解--D19 867. Transpose Matrix
867. Transpose Matrix 题目链接 867. Transpose Matrix 题目分析 这个题目比较简单,就是矩...
Leetcode PHP题解--D18 908. Smallest Range I
908. Smallest Range I 题目链接 908. Smallest Range I 题目分析 给定一个数组A和一个数字...
Leetcode PHP题解--D17 883. Projection Area of 3D Shapes
883. Projection Area of 3D Shapes 题目链接 883. Projection Area of 3D ...
Leetcode PHP题解--D16 922. Sort Array By Parity II
922. Sort Array By Parity II 题目链接 922. Sort Array By Parity II 题目分...
Leetcode No.268 Missing Number(缺失数字)
题目链接: Leetcode No.268 Missing Number (缺失数字) 给定一个包含 0, 1, 2, ...,...
Leetcode PHP题解--D15 509. Fibonacci Number
509. Fibonacci Number 题目链接 509. Fibonacci Number 题目分析 斐波那契数列应该不用我多...
Leetcode PHP题解--D14 561. Array Partition I
561. Array Partition I 题目链接 561. Array Partition I 题目分析 本题给了一个数组,要...