LeetCode

2 已关注
69篇博文
• LeetCode目录。

本目录只会在一个Tag完成之后更新，实时更新目录：https://github.com/jiajia0/LeetCode。 按照LeetCode的Tags来区分的话，目前共有34个Tag，只列出已经...

2017-11-21 18:41
239
• 804. Unique Morse Code Words。

International Morse Code defines a standard encoding where each letter is mapped to a series of dots...

2018-04-30 14:45
32
• 451. Sort Characters By Frequency。

Given a string, sort it in decreasing order based on the frequency of characters.Example 1: Input:...

2018-02-25 19:18
53
• 748. Shortest Completing Word。

Find the minimum length word from a given dictionary words, which has all the letters from the strin...

2018-02-23 00:02
71
• 739. Daily Temperatures。

Given a list of daily temperatures, produce a list that, for each day in the input, tells you how ma...

2018-02-22 23:16
73
• 136. Single Number。

Given an array of integers, every element appears twice except for one. Find that single one.原文：http...

2018-02-21 20:33
84
• 463. Island Perimeter。

You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represen...

2018-02-21 13:02
47
• 575. Distribute Candies。

Given an integer array with even length, where different numbers in this array represent different k...

2018-02-21 10:14
66
• 500. Keyboard Row。

Given a List of words, return the words that can be typed using letters of alphabet on only one row’...

2018-02-20 22:05
61
• 771. Jewels and Stones。

You’re given strings J representing the types of stones that are jewels, and S representing the ston...

2018-02-20 17:08
160
• 216. Combination Sum III。

Find all possible combinations of k numbers that add up to a number n, given that only numbers from ...

2018-02-20 14:34
99
• 769. Max Chunks To Make Sorted。

Given an array arr that is a permutation of [0, 1, …, arr.length - 1], we split the array into some ...

2018-02-14 12:06
96
• 714. Best Time to Buy and Sell Stock with Transaction Fee。

Your are given an array of integers prices, for which the i-th element is the price of a given stock...

2018-02-12 22:50
86
• 121. Best Time to Buy and Sell Stock。

Say you have an array for which the ith element is the price of a given stock on day i.If you were o...

2018-02-09 23:12
88
• 661. Image Smoother。

Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother t...

2018-01-27 23:43
117
• 122. Best Time to Buy and Sell Stock II。

Say you have an array for which the ith element is the price of a given stock on day i.Design an alg...

2018-01-26 23:20
112
• 287. Find the Duplicate Number。

Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), pro...

2018-01-26 00:07
132
• 766. Toeplitz Matrix。

A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element.Now given ...

2018-01-25 00:06
267
• 674. Longest Continuous Increasing Subsequence。

Given an unsorted array of integers, find the length of longest continuous increasing subsequence (s...

2018-01-09 20:30
123
• 565. Array Nesting。

A zero-indexed array A of length N contains all integers from 0 to N-1. Find and return the longest ...

2018-01-10 15:35
143

93120