自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

原创 LeetCode394. Decode String

Given an encoded string, return its decoded string. The encoding rule is:k[encoded_string], where theencoded_stringinside the square brackets is bei...

2019-09-27 12:31:50

阅读数 4

评论数 0

原创 LeetCode393. UTF-8 Validation

A character in UTF8 can be from1 to 4 byteslong, subjected to the following rules: For 1-byte character, the first bit is a 0, followed by its unico...

2019-09-25 09:52:21

阅读数 5

评论数 0

原创 LeetCode392. Is Subsequence

Given a stringsand a stringt, check ifsis subsequence oft. You may assume that there is only lower case English letters in bothsandt.tis potentially...

2019-09-25 09:01:49

阅读数 2

评论数 0

原创 LeetCode391. Perfect Rectangle

Given N axis-aligned rectangles where N > 0, determine if they all together form an exact cover of a rectangular region. Each rectangle is repres...

2019-09-24 19:07:33

阅读数 5

评论数 0

原创 LeetCode390. Elimination Game

There is a list of sorted integers from 1 ton. Starting from left to right, remove the first number and every other number afterward until you reach ...

2019-09-24 00:05:02

阅读数 6

评论数 0

原创 LeetCode389. Find the Difference

Given two stringssandtwhich consist of only lowercase letters. Stringtis generated by random shuffling stringsand then add one more letter at a rand...

2019-09-23 02:23:05

阅读数 5

评论数 0

原创 LeetCode387. First Unique Character in a String

Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: s = "...

2019-09-23 02:05:00

阅读数 5

评论数 0

原创 LeetCode388. Longest Absolute File Path

Suppose we abstract our file system by a string in the following manner: The string"dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext"represents: ...

2019-09-23 01:09:53

阅读数 12

评论数 0

原创 LeetCode386. Lexicographical Numbers

Given an integern, return 1 -nin lexicographical order. For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9]. Please optimize your algori...

2019-09-19 12:16:50

阅读数 12

评论数 0

原创 LeetCode385. Mini Parser

Given a nested list of integers represented as a string, implement a parser to deserialize it. Each element is either an integer, or a list -- whose...

2019-09-19 11:42:15

阅读数 9

评论数 0

原创 LeetCode384. Shuffle an Array

Shuffle a set of numbers without duplicates. Example: // Init an array with set 1, 2, and 3. int[] nums = {1,2,3}; Solution solution = new Solutio...

2019-09-18 21:35:28

阅读数 3

评论数 0

原创 LeetCode383. Ransom Note

Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ran...

2019-09-18 20:58:50

阅读数 5

评论数 0

原创 LeetCode382. Linked List Random Node

Given a singly linked list, return a random node's value from the linked list. Each node must have thesame probabilityof being chosen. Follow u...

2019-09-18 20:49:28

阅读数 5

评论数 0

原创 LeetCode381. Insert Delete GetRandom O(1) - Duplicates allowed

Design a data structure that supports all following operations inaverageO(1)time. Note: Duplicate elements are allowed. insert(val): Inserts an i...

2019-09-17 23:10:20

阅读数 8

评论数 0

原创 LeetCode380. Insert Delete GetRandom O(1)

Design a data structure that supports all following operations inaverageO(1)time. insert(val): Inserts an item val to the set if not already prese...

2019-09-17 22:04:12

阅读数 1

评论数 0

原创 LeetCode379 Design Phone Directory

。。。

2019-09-17 21:44:47

阅读数 5

评论数 0

原创 LeetCode378. Kth Smallest Element in a Sorted Matrix

Given anxnmatrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note that it is the ...

2019-09-17 21:44:11

阅读数 25

评论数 0

原创 LeetCode377. Combination Sum IV

Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target...

2019-09-17 21:33:14

阅读数 6

评论数 0

原创 LeetCode376. Wiggle Subsequence

A sequence of numbers is called awiggle sequenceif the differences between successive numbers strictly alternate between positive and negative. The f...

2019-09-17 21:33:07

阅读数 7

评论数 0

原创 LeetCode375. Guess Number Higher or Lower II

We are playing the Guess Game. The game is as follows: I pick a number from1ton. You have to guess which number I picked. Every time you guess wron...

2019-09-17 21:32:58

阅读数 10

评论数 0

原创 LeetCode374. Guess Number Higher or Lower

374.Guess Number Higher or Lower Easy 2611297FavoriteShare We are playing the Guess Game. The game is as follows: I pick a number from1ton. You h...

2019-09-17 15:35:19

阅读数 22

评论数 0

原创 LeetCode373. Find K Pairs with Smallest Sums

You are given two integer arraysnums1andnums2sorted in ascending order and an integerk. Define a pair(u,v)which consists of one element from the fir...

2019-09-17 15:35:10

阅读数 13

评论数 0

原创 LeetCode372. Super Pow

Your task is to calculateabmod 1337 whereais a positive integer andbis an extremely large positive integer given in the form of an array. Example 1:...

2019-09-17 15:35:00

阅读数 14

评论数 0

原创 LeetCode371. Sum of Two Integers

Calculate the sum of two integersaandb, but you arenot allowedto use the operator+and-. Example 1: Input: a = 1, b = 2 Output: 3 Example 2: In...

2019-09-16 10:45:58

阅读数 6

评论数 0

原创 LeetCode370 Range Addition

。。。

2019-09-16 10:45:44

阅读数 34

评论数 0

原创 LeetCode369 Plus One Linked List

。。。

2019-09-16 10:45:25

阅读数 39

评论数 0

原创 LeetCode368. Largest Divisible Subset

Given a set ofdistinctpositive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfies: Si% Sj= 0 or Sj...

2019-09-16 10:44:51

阅读数 5

评论数 0

原创 LeetCode367. Valid Perfect Square

Given a positive integernum, write a function which returns True ifnumis a perfect square else False. Note:Do notuse any built-in library function s...

2019-09-11 10:59:32

阅读数 20

评论数 0

原创 LeetCode366 Find Leaves of Binary Tree

。。。

2019-09-11 10:59:22

阅读数 18

评论数 0

原创 LeetCode365. Water and Jug Problem

You are given two jugs with capacitiesxandylitres. There is an infinite amount of water supply available. You need to determine whether it is possibl...

2019-09-11 10:59:11

阅读数 21

评论数 0

原创 LeetCode364 Nested List Weight Sum II

。。。

2019-09-11 10:58:59

阅读数 13

评论数 0

原创 LeetCode363. Max Sum of Rectangle No Larger Than K

Given a non-empty 2D matrixmatrixand an integerk, find the max sum of a rectangle in thematrixsuch that its sum is no larger thank. Example: Input...

2019-09-10 12:20:36

阅读数 10

评论数 0

原创 LeetCode362 Design Hit Counter

。。。

2019-09-10 12:20:26

阅读数 4

评论数 0

原创 LeetCode361 Bomb Enemy

。。。

2019-09-10 12:20:17

阅读数 8

评论数 0

原创 LeetCode360 Sort Transformed Array

。。。

2019-09-10 12:20:08

阅读数 7

评论数 0

原创 LeetCode359 Logger Rate Limiter

。。。

2019-09-10 12:19:58

阅读数 103

评论数 0

原创 LeetCode358 Rearrange String k Distance Apart

。。。

2019-09-10 12:19:48

阅读数 87

评论数 0

原创 LeetCode357. Count Numbers with Unique Digits

Given anon-negativeinteger n, count all numbers with unique digits, x, where 0 ≤ x < 10n. Example: Input: 2 Output: 91 Explanation: The answer...

2019-09-10 12:19:38

阅读数 90

评论数 0

原创 LeetCode356 Line Reflection

。。。

2019-09-10 12:19:26

阅读数 56

评论数 0

原创 LeetCode355. Design Twitter

Design a simplified version of Twitter where users can post tweets, follow/unfollow another user and is able to see the 10 most recent tweets in the ...

2019-09-10 12:19:12

阅读数 57

评论数 0

提示
确定要删除当前文章?
取消 删除