We are given head, the head node of a linked list containing unique integer values. We a…
分类:LeetCode
LeetCode | Best Time to Buy and Sell Stock II
题目: Say you have an array for which the ith element is the price of a given stock on day i. Des…
LeetCode 063 Unique Paths II
题目描述 Follow up for “Unique Paths”: Now consider if some obstacles are added to the grids. How many unique path…
【leetcode】40. Combination Sum II 有重复值的整数数组等于指定值的所有子集组合
1. 题目 Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C w…
力扣(LeetCode)130
题目地址:https://leetcode-cn.com/probl…题目描述:给定一个二维的矩阵,包含 ‘X’ 和 ‘O’(字母 O)。 找到所有被 R…
LeetCode | Merge Intervals(合并区间间隔)
Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2,6],[8,10],[…
LeetCode | Longest Valid Parentheses(最长有效的括号匹配)
Given a string containing just the characters '(' and ')', find the length of the longest valid…
LeetCode | Remove Duplicates from Sorted Array(删除有序数组的重复元素)
Given a sorted array, remove the duplicates in place such that each element appear only once and ret…
Leetcode394——Decode String
文章作者:Tyan 博客:noahsnail.com | CSDN | 简书 1. 问题描述 Given an encoded string, return it̵…
[LeetCode] Two Sum 两数之和
Given an array of integers, return indices of the two numbers such that they add up to a spec…
[LeetCode] Recover Binary Search Tree 复原二叉搜索树,Binary Tree Inorder Traversal
Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing it…
[LeetCode] Student Attendance Record II 学生出勤记录之二
Given a positive integer n, return the number of all possible attendance records with length n, which w…