加载中...
分类详情
中等 分类
120-三角形最小路径和(Triangle)
原文链接: https://leetcode-cn.com/problems/triangle 英文原文Given a triangle array, return the minimum path sum from top to bottom. For each step, you may move to an adjacent number of the row below. More formally, if you are on index i on the current row, y…
2021-12-03
134-加油站(Gas Station)
原文链接: https://leetcode-cn.com/problems/gas-station 英文原文There are n gas stations along a circular route, where the amount of gas at the ith station is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from the ith…
2021-12-03
143-重排链表(Reorder List)
原文链接: https://leetcode-cn.com/problems/reorder-list 英文原文You are given the head of a singly linked-list. The list can be represented as: L0 → L1 → … → Ln - 1 → Ln Reorder the list to be on the following form: L0 → Ln &r…
2021-12-03
162-寻找峰值(Find Peak Element)
原文链接: https://leetcode-cn.com/problems/find-peak-element 英文原文A peak element is an element that is strictly greater than its neighbors. Given an integer array nums, find a peak element, and return its index. If the array contains multiple peaks, retur…
2021-12-03
165-比较版本号(Compare Version Numbers)
原文链接: https://leetcode-cn.com/problems/compare-version-numbers 英文原文Given two version numbers, version1 and version2, compare them. Version numbers consist of one or more revisions joined by a dot '.'. Each revision consists of digits and may contain …
2021-12-03
172-阶乘后的零(Factorial Trailing Zeroes)
原文链接: https://leetcode-cn.com/problems/factorial-trailing-zeroes 英文原文Given an integer n, return the number of trailing zeroes in n!. Note that n! = n * (n - 1) * (n - 2) * ... * 3 * 2 * 1. Example 1: Input: n = 3 Output: 0 Explanation: 3! = 6, no tra…
2021-12-03
176-第二高的薪水(Second Highest Salary)
原文链接: https://leetcode-cn.com/problems/second-highest-salary 英文原文Table: Employee +-------------+------+ | Column Name | Type | +-------------+------+ | id | int | | salary | int | +-------------+------+ id is the primary key column for this table. Ea…
2021-12-03
177-第N高的薪水(Nth Highest Salary)
原文链接: https://leetcode-cn.com/problems/nth-highest-salary 英文原文Table: Employee +-------------+------+ | Column Name | Type | +-------------+------+ | id | int | | salary | int | +-------------+------+ id is the primary key column for this table. Each …
2021-12-03
178-分数排名(Rank Scores)
原文链接: https://leetcode-cn.com/problems/rank-scores 英文原文Table: Scores +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | score | decimal | +-------------+---------+ id is the primary key for this table. Each row …
2021-12-03
180-连续出现的数字(Consecutive Numbers)
原文链接: https://leetcode-cn.com/problems/consecutive-numbers 英文原文Table: Logs +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | num | varchar | +-------------+---------+ id is the primary key for this table. Write…
2021-12-03
179-最大数(Largest Number)
原文链接: https://leetcode-cn.com/problems/largest-number 英文原文Given a list of non-negative integers nums, arrange them such that they form the largest number. Note: The result may be very large, so you need to return a string instead of an integer. Examp…
2021-12-03