Leetcode_HashTable
文章平均质量分 67
想当厨子的程序媛
前期追深度,否则会华而不实,后期追广度,否则会坐井观天;
展开
-
Leetcode——811. Subdomain Visit Count
题目原址https://leetcode.com/problems/subdomain-visit-count/description/题目描述A website domain like “discuss.leetcode.com” consists of various subdomains. At the top level, we have “com”, at the nex...原创 2018-05-05 19:23:42 · 262 阅读 · 0 评论 -
Leetcode——667. Beautiful Arrangement II
题目原址https://leetcode.com/problems/beautiful-arrangement-ii/description/题目描述Given two integers n and k, you need to construct a list which contains n different positive integers ranging from 1 ...原创 2018-05-08 16:13:17 · 167 阅读 · 0 评论 -
Leetcode——739. Daily Temperatures
题目描述Given a list of daily temperatures, produce a list that, for each day in the input, tells you how many days you would have to wait until a warmer temperature. If there is no future day for which...原创 2018-05-08 15:07:03 · 274 阅读 · 0 评论 -
Leetcode——535. Encode and Decode TinyURL
题目原址https://leetcode.com/problems/encode-and-decode-tinyurl/description/题目描述TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it ...原创 2018-05-08 14:31:56 · 207 阅读 · 0 评论 -
Leetcode——438. Find All Anagrams in a String
题目原址https://leetcode.com/problems/find-all-anagrams-in-a-string/description/题目描述Given a string s and a non-empty string p, find all the start indices of p’s anagrams in s.Strings consists of l...原创 2018-05-07 16:00:48 · 155 阅读 · 0 评论 -
Leetcode——409. Longest Palindrome
题目原址https://leetcode.com/problems/longest-palindrome/description/题目描述Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be bui...原创 2018-05-06 18:38:31 · 113 阅读 · 0 评论 -
Leetcode——242. Valid Anagram
题目原址https://leetcode.com/problems/valid-anagram/description/题目描述Given two strings s and t, write a function to determine if t is an anagram of s.For example, s = “anagram”, t = “nagaram”, r...原创 2018-05-06 17:18:23 · 160 阅读 · 0 评论 -
Leetcode——389. Find the Difference
题目原址https://leetcode.com/problems/find-the-difference/description/题目描述Given two strings s and t which consist of only lowercase letters.String t is generated by random shuffling string s and...原创 2018-05-06 16:55:08 · 149 阅读 · 0 评论 -
Leetcode——136. Single Number
题目原址https://leetcode.com/problems/single-number/description/题目描述Given a non-empty array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm sh...原创 2018-05-05 21:13:11 · 273 阅读 · 0 评论 -
Leetcode——463. Island Perimeter
题目原址https://leetcode.com/problems/island-perimeter/description/题目描述You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are ...原创 2018-05-05 21:00:50 · 158 阅读 · 0 评论 -
Leetcode——575. Distribute Candies
题目原址https://leetcode.com/problems/distribute-candies/description/题目描述Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each n...原创 2018-05-05 20:38:15 · 124 阅读 · 0 评论 -
Leetcode——500. Keyboard Row
题目原址https://leetcode.com/problems/keyboard-row/description/题目描述Given a List of words, return the words that can be typed using letters of alphabet on only one row’s of American keyboard like the...原创 2018-05-05 19:58:26 · 158 阅读 · 0 评论 -
Leetcode——451. Sort Characters By Frequency
题目原址https://leetcode.com/problems/sort-characters-by-frequency/description/题目描述Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Input: “tree”...原创 2018-05-22 21:17:21 · 303 阅读 · 0 评论