
leetcode
XB_please
谢谢
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 16:最接近的三数之和(3Sum Closest)
英文题目Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assume that each input w...原创 2020-03-19 14:24:26 · 200 阅读 · 0 评论 -
LeetCode 15 :三数之和(3Sum)
英文题目Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:The solution set must not c...原创 2020-03-19 14:14:55 · 297 阅读 · 0 评论 -
LeetCode1:两数之和(Two Sum)
英文题目Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the s...原创 2020-03-19 14:13:07 · 222 阅读 · 0 评论 -
LeetCode1109:航班预订统计(Corporate Flight Bookings)
title: LeetCode53:最大子序和(Maximum Subarray)date: 2019-9-15 14:10:30tags: [LeetCode]categories: LeetCode刷题英文题目:Given an integer array nums, find the contiguous subarray (containing at least one num...原创 2019-10-07 19:35:23 · 397 阅读 · 0 评论 -
LeetCode94:二叉树的中序遍历(Binary Tree Inorder Traversal)
英文题目:Given a binary tree, return the inorder traversal of its nodes’ values.Example:Input: [1,null,2,3] 1 \ 2 / 3Output: [1,3,2]Follow up: Recursive solution is trivial, coul...原创 2019-09-15 15:12:38 · 215 阅读 · 1 评论 -
LeetCode42:接雨水(Trapping Rain Water)
---title: LeetCode42:接雨水(Trapping Rain Water)date: 2019-9-3 13:58:30tags: [LeetCode]categories: LeetCode刷题英文题目:Given n non-negative integers representing an elevation map where the width of ea...原创 2019-09-15 15:10:15 · 270 阅读 · 0 评论 -
LeetCode84:柱形图中最大的矩形(Largest Rectangle in Histogram)
英文题目:Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.Example:Input: [-2,1,-3,4,-1,2,1,-5,4], Output: 6 Expl...原创 2019-09-15 15:03:36 · 221 阅读 · 0 评论 -
LeetCode20:有效的括号(Valid Parentheses)
英文题目:Given a string containing just the characters ‘(’, ‘)’, ‘{’, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.An input string is valid if:1.Open brackets must be closed by the same typ...原创 2019-09-15 15:01:24 · 239 阅读 · 0 评论 -
LeetCode33:搜索旋转排序数组(Search in Rotated Sorted Array)
英文题目:Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).You are given a target value to search. If fo...原创 2019-09-15 14:58:59 · 228 阅读 · 0 评论 -
LeetCode120:三角形最小路径和
英文题目:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the following triangle[ [2], [3,4], [...原创 2019-09-15 14:52:05 · 200 阅读 · 0 评论 -
LeetCode53:最大子序和(Maximum Subarray)
英文题目:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the ...原创 2019-09-15 14:14:29 · 161 阅读 · 0 评论