Excel Sheet Column Number Related to question Excel Sheet Column Title Given a column title as appear in an Ex…
分类:LeetCode题目解答
236. Lowest Common Ancestor of a Binary Tree
236. Lowest Common Ancestor of a Binary Tree 题目 Given a binary tree, find the lowest common ancestor (LCA) of …
[LeetCode] Find Minimum in Rotated Sorted Array 寻找旋转有序数组的最小值
Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7&nb…
[LeetCode] Patching Array 补丁数组
Given a sorted positive integer array nums and an integer n, add/patch elements to the a…
[LeetCode] Maximal Rectangle 最大矩形
Given a 2D binary matrix filled with 0’s and 1’s, find the largest rectangle containing all…
[LeetCode] Plus One Linked List 链表加一运算
Given a non-negative number represented as a singly linked list of digits, plus one to the number. The …
[LeetCode] Parse Lisp Expression 解析Lisp表达式
You are given a string expression representing a Lisp-like expression to return the integer v…
LeetCode | Permutation Sequence
题目: The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all…
LeetCode | Validate Binary Search Tree
题目: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follo…
[Leetcode] Wildcard Matching 通配符匹配
Wildcard Matching Implement wildcard pattern matching with support for ‘?’ and ‘*’. …
[LeetCode] Reverse Linked List II 倒置链表之二
Reverse a linked list from position m to n. Do it in one-pass. Note: 1 ≤ m&nbs…
[LeetCode] Factorial Trailing Zeroes 求阶乘末尾零的个数
Given an integer n, return the number of trailing zeroes in n!. Note: Your solution shou…