摘要:
原题链接在这里:https://leetcode.com/problems/fibonacci-number/ 题目: The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequenc 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/ 题目: You have k lists of sorted integers in ascending order. Find 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-area-rectangle-ii/ 题目: Given a set of points in the xy-plane, determine the minimum area of any rectangl 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-area-rectangle/ 题目: Given a set of points in the xy-plane, determine the minimum area of a rectangle for 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-window-subsequence/ 题目: Given strings s1 and s2, return the minimum contiguous substring part of s1, so 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/backspace-string-compare/ 题目: Given two strings S and T, return if they are equal when both are typed into empty 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/valid-tic-tac-toe-state/ 题目: A Tic-Tac-Toe board is given as a string array board. Return True if and only if it 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/design-search-autocomplete-system/ 题目: Design a search autocomplete system for a search engine. Users may input 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/longest-absolute-file-path/ 题目: Suppose we abstract our file system by a string in the following manner: The str 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/rotated-digits/ 题目: X is a good number if after rotating each digit individually by 180 degrees, we get a valid 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/design-circular-deque/ 题目: Design your implementation of the circular double-ended queue (deque). Your implement 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/design-circular-queue/ 题目: Design your implementation of the circular queue. The circular queue is a linear data 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/remove-outermost-parentheses/ 题目: A valid parentheses string is either empty (""), "(" + A + ")", or A + B, wher 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/defanging-an-ip-address/ 题目: Given a valid (IPv4) IP address, return a defanged version of that IP address. A de 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/find-pivot-index/ 题目: Given an array of integers nums, write a method that returns the "pivot" index of this arr 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/check-if-a-number-is-majority-element-in-a-sorted-array/ 题目: Given an array nums sorted in non-decreasing order, 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/peak-index-in-a-mountain-array/ 题目: Let's call an array A a mountain if the following properties hold: A.length 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/smallest-common-region/ 题目: You are given some lists of regions where the first region of each list includes all 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/coloring-a-border/ 题目: Given a 2-dimensional grid of integers, each value in the grid represents the color of th 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/design-tic-tac-toe/ 题目: Design a Tic-tac-toe game that is played between two players on a n x n grid. You may as 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/ 题目: There are a number of spherical balloons spread in two-dimension 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/flood-fill/ 题目: An image is represented by a 2-D array of integers, each integer representing the pixel value of 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/squares-of-a-sorted-array/ 题目: Given an array of integers A sorted in non-decreasing order, return an array of t 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/contiguous-array/ 题目: Given a binary array, find the maximum length of a contiguous subarray with equal number o 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/spiral-matrix-iii/ 题目: On a 2 dimensional grid with R rows and C columns, we start at (r0, c0) facing east. Here 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/stickers-to-spell-word/ 题目: We are given N different types of stickers. Each sticker has a lowercase English wor 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/single-element-in-a-sorted-array/ 题目: You are given a sorted array consisting of only integers where every eleme 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/toeplitz-matrix/ 题目: A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element. 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/valid-square/ 题目: Given the coordinates of four points in 2D space, return whether the four points could constru 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/intersection-of-three-sorted-arrays/ 题目: Given three integer arrays arr1, arr2 and arr3 sorted in strictly incre 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/unique-paths-iii/ 题目: On a 2-dimensional grid, there are 4 types of squares: 1 represents the starting square. T 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/find-the-town-judge/ 题目: In a town, there are N people labelled from 1 to N. There is a rumor that one of these 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/pancake-sorting/ 题目: Given an array A, we can perform a pancake flip: We choose some positive integer k <= A.len 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/ 题目: Given a rooted binary tree, return the lowest common ancestor of i 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/maximum-vacation-days/ 题目: LeetCode wants to give one of its best employees the option to travel among N cities 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/snapshot-array/ 题目: Implement a SnapshotArray that supports the following interface: SnapshotArray(int length) i 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/robot-room-cleaner/ 题目: Given a robot cleaner in a room modeled as a grid. Each cell in the grid can be empty or 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/valid-palindrome-iii/ 题目: Given a string s and an integer k, find out if the given string is a K-Palindrome or n 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/ 题目: Given a string S of '(' and ')' parentheses, we add the minimum numbe 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/range-sum-of-bst/ 题目: Given the root node of a binary search tree, return the sum of values of all nodes with va 阅读全文