摘要:
原题链接在这里:https://leetcode.com/problems/fibonacci-number/ 题目: The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequenc
阅读全文
posted @ 2019-12-30 08:41
Dylan_Java_NYC
阅读(323)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/ 题目: You have k lists of sorted integers in ascending order. Find
阅读全文
posted @ 2019-12-29 12:43
Dylan_Java_NYC
阅读(273)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-area-rectangle-ii/ 题目: Given a set of points in the xy-plane, determine the minimum area of any rectangl
阅读全文
posted @ 2019-12-29 05:23
Dylan_Java_NYC
阅读(678)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-area-rectangle/ 题目: Given a set of points in the xy-plane, determine the minimum area of a rectangle for
阅读全文
posted @ 2019-12-29 05:19
Dylan_Java_NYC
阅读(340)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-window-subsequence/ 题目: Given strings s1 and s2, return the minimum contiguous substring part of s1, so
阅读全文
posted @ 2019-12-28 13:54
Dylan_Java_NYC
阅读(507)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/backspace-string-compare/ 题目: Given two strings S and T, return if they are equal when both are typed into empty
阅读全文
posted @ 2019-12-28 06:08
Dylan_Java_NYC
阅读(245)
推荐(0)
摘要:
原题链接在这里: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
阅读全文
posted @ 2019-12-27 09:25
Dylan_Java_NYC
阅读(272)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/design-search-autocomplete-system/ 题目: Design a search autocomplete system for a search engine. Users may input
阅读全文
posted @ 2019-12-27 07:59
Dylan_Java_NYC
阅读(401)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/longest-absolute-file-path/ 题目: Suppose we abstract our file system by a string in the following manner: The str
阅读全文
posted @ 2019-12-27 06:29
Dylan_Java_NYC
阅读(269)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/rotated-digits/ 题目: X is a good number if after rotating each digit individually by 180 degrees, we get a valid
阅读全文
posted @ 2019-12-27 05:25
Dylan_Java_NYC
阅读(195)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/design-circular-deque/ 题目: Design your implementation of the circular double-ended queue (deque). Your implement
阅读全文
posted @ 2019-12-22 12:12
Dylan_Java_NYC
阅读(452)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/design-circular-queue/ 题目: Design your implementation of the circular queue. The circular queue is a linear data
阅读全文
posted @ 2019-12-22 11:51
Dylan_Java_NYC
阅读(420)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/remove-outermost-parentheses/ 题目: A valid parentheses string is either empty (""), "(" + A + ")", or A + B, wher
阅读全文
posted @ 2019-12-22 08:20
Dylan_Java_NYC
阅读(436)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/defanging-an-ip-address/ 题目: Given a valid (IPv4) IP address, return a defanged version of that IP address. A de
阅读全文
posted @ 2019-12-22 07:30
Dylan_Java_NYC
阅读(364)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/find-pivot-index/ 题目: Given an array of integers nums, write a method that returns the "pivot" index of this arr
阅读全文
posted @ 2019-12-22 04:08
Dylan_Java_NYC
阅读(352)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/check-if-a-number-is-majority-element-in-a-sorted-array/ 题目: Given an array nums sorted in non-decreasing order,
阅读全文
posted @ 2019-12-21 10:48
Dylan_Java_NYC
阅读(871)
推荐(0)
摘要:
原题链接在这里: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
阅读全文
posted @ 2019-12-21 09:43
Dylan_Java_NYC
阅读(244)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/smallest-common-region/ 题目: You are given some lists of regions where the first region of each list includes all
阅读全文
posted @ 2019-12-21 09:25
Dylan_Java_NYC
阅读(1113)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/coloring-a-border/ 题目: Given a 2-dimensional grid of integers, each value in the grid represents the color of th
阅读全文
posted @ 2019-12-19 13:12
Dylan_Java_NYC
阅读(401)
推荐(0)
摘要:
原题链接在这里: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
阅读全文
posted @ 2019-12-19 12:41
Dylan_Java_NYC
阅读(505)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/ 题目: There are a number of spherical balloons spread in two-dimension
阅读全文
posted @ 2019-12-19 11:56
Dylan_Java_NYC
阅读(289)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/flood-fill/ 题目: An image is represented by a 2-D array of integers, each integer representing the pixel value of
阅读全文
posted @ 2019-12-18 10:59
Dylan_Java_NYC
阅读(223)
推荐(0)
摘要:
原题链接在这里: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
阅读全文
posted @ 2019-12-18 10:09
Dylan_Java_NYC
阅读(230)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/contiguous-array/ 题目: Given a binary array, find the maximum length of a contiguous subarray with equal number o
阅读全文
posted @ 2019-12-17 13:09
Dylan_Java_NYC
阅读(354)
推荐(0)
摘要:
原题链接在这里: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
阅读全文
posted @ 2019-12-17 12:29
Dylan_Java_NYC
阅读(251)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/stickers-to-spell-word/ 题目: We are given N different types of stickers. Each sticker has a lowercase English wor
阅读全文
posted @ 2019-12-17 11:38
Dylan_Java_NYC
阅读(545)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/single-element-in-a-sorted-array/ 题目: You are given a sorted array consisting of only integers where every eleme
阅读全文
posted @ 2019-12-16 10:40
Dylan_Java_NYC
阅读(298)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/toeplitz-matrix/ 题目: A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element.
阅读全文
posted @ 2019-12-16 10:08
Dylan_Java_NYC
阅读(364)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/valid-square/ 题目: Given the coordinates of four points in 2D space, return whether the four points could constru
阅读全文
posted @ 2019-12-16 10:01
Dylan_Java_NYC
阅读(317)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/intersection-of-three-sorted-arrays/ 题目: Given three integer arrays arr1, arr2 and arr3 sorted in strictly incre
阅读全文
posted @ 2019-12-16 09:09
Dylan_Java_NYC
阅读(1489)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/unique-paths-iii/ 题目: On a 2-dimensional grid, there are 4 types of squares: 1 represents the starting square. T
阅读全文
posted @ 2019-12-16 08:59
Dylan_Java_NYC
阅读(224)
推荐(0)
摘要:
原题链接在这里: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
阅读全文
posted @ 2019-12-16 06:54
Dylan_Java_NYC
阅读(309)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/pancake-sorting/ 题目: Given an array A, we can perform a pancake flip: We choose some positive integer k <= A.len
阅读全文
posted @ 2019-12-16 06:11
Dylan_Java_NYC
阅读(631)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/ 题目: Given a rooted binary tree, return the lowest common ancestor of i
阅读全文
posted @ 2019-12-15 10:58
Dylan_Java_NYC
阅读(435)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/maximum-vacation-days/ 题目: LeetCode wants to give one of its best employees the option to travel among N cities
阅读全文
posted @ 2019-12-15 10:40
Dylan_Java_NYC
阅读(273)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/snapshot-array/ 题目: Implement a SnapshotArray that supports the following interface: SnapshotArray(int length) i
阅读全文
posted @ 2019-12-15 07:42
Dylan_Java_NYC
阅读(428)
推荐(0)
摘要:
原题链接在这里: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
阅读全文
posted @ 2019-12-12 13:11
Dylan_Java_NYC
阅读(434)
推荐(0)
摘要:
原题链接在这里: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
阅读全文
posted @ 2019-12-12 11:38
Dylan_Java_NYC
阅读(1592)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/ 题目: Given a string S of '(' and ')' parentheses, we add the minimum numbe
阅读全文
posted @ 2019-12-12 08:24
Dylan_Java_NYC
阅读(268)
推荐(0)
摘要:
原题链接在这里: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
阅读全文
posted @ 2019-12-12 08:00
Dylan_Java_NYC
阅读(492)
推荐(0)