2. Add Two Numbers 题目 You are given two non-empty linked lists representing two non-negative integers. The dig…
分类:LeetCode
[LeetCode] Sort Colors 颜色排序
Given an array with n objects colored red, white or blue, sort them so that objects of the sa…
[LeetCode] Department Top Three Salaries 系里前三高薪水
The Employee table holds all employees. Every employee has an Id, and there is also a column …
[LeetCode] Coin Change 硬币找零
You are given coins of different denominations and a total amount of money amount. Write a functio…
LeetCode 总结 - 搞定 Stack 面试题
[20] Valid Parentheses:判断括号是否合法 [32] Longest Valid Parentheses:最长合法的括号 [232] Implement Queue using Stacks:用两个栈…
Leetcode PHP题解--D21 344. Reverse String
344. Reverse String 题目链接 344. Reverse String 题目分析 题目要求以O(1)时间复杂度把字符串倒转过来。 思路 题目提示说用原地算法……Emmm…我并不会,只能用st…
Leetcode 95. Unique Binary Search Trees II
Given an integer n, generate all structurally unique BST’s (binary search trees) that store values 1R…
LeetCode | Unique Binary Search Trees(二叉搜索树的个数)
Given n, how many structurally unique BST’s (binary search trees) that store values 1R…
LeetCode 197. Rising Temperature
LeetCode 197. Rising Temperature 题目 Given a Weather table, write a SQL query to find all dates’ Ids with…
LeetCode算法题-Find Smallest Letter Greater Than Target(Java实现)
这是悦乐书的第306次更新,第326篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第175题(顺位题号是744)。给定一个仅包含小写字母的有序字符数组,并给定目标字母目标,找到数组中大于给定…
Maximum Submatrix & Largest Rectangle
相关题型 问题一(最大和子矩阵) : 有一个 m x n 的矩阵,矩阵的元素可正可负。请找出该矩阵的一个子矩阵(方块),使得其所有元素之和在所有子矩阵中最大。(问题来源:http://acm.pku.edu.cn/Jud…
66. Plus One
66. Plus One 题目 Given a non-negative integer represented as a non-empty array of digits, plus one to the integ…