Count And Say The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 11…
分类:LeetCode题目解答
[LeetCode] Tag Validator 标签验证器
Given a string representing a code snippet, you need to implement a tag validator to parse the code and…
LeetCode | Path Sum
题目: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the v…
LeetCode 125 Valid Palindrome
题目描述 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring ca…
[Leetcode] Sum Root to Leaf Numbers 累加叶子节点
Sum Root to Leaf Numbers Given a binary tree containing digits from 0-9 only, each root-to-leaf path could rep…
【leetcode】34. Search for a Range 给定数组的给定值的下标范围
1. 题目 Given a sorted array of integers, find the starting and ending position of a given target value. Your al…
[LeetCode] Assign Cookies 分点心
Assume you are an awesome parent and want to give your children some cookies. But, you should give each…
LeetCode | Container With Most Water
题目: Given n non-negative integers a1, a2, …, an, where each represents a point …
LeetCode 34. Search for a Range
题目 给定一个包含 n 个整数的排序数组,找出给定目标值 target 的起始和结束位置。 如果目标值不在数组中,则返回[-1, -1] 样例 给出[5, 7, 7, 8, 8, 10]和目标值target=8,返回[3…
LeetCode | Single Number
题目: Given an array of integers, every element appears twice except for one. Find that single one. No…
[Leetcode] Subset 子集
Subset I Given a set of distinct integers, nums, return all possible subsets. Note: Elements in a subset must …
[Leetcode] Median of Two Sorted Arrays 有序数组中位数
Median of Two Sorted Arrays 最新解法及思路:https://yanjia.li/zh/2018/11/… There are two sorted arrays nums1 and…