上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 26 下一页
摘要: 原题链接在这里:https://leetcode.com/problems/valid-word-abbreviation/ 题目: Given a non-empty string s and an abbreviation abbr, return whether the string matc 阅读全文
posted @ 2017-04-11 01:54 Dylan_Java_NYC 阅读(582) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/k-diff-pairs-in-an-array/ 题目: Given an array of integers and an integer k, you need to find the number of unique 阅读全文
posted @ 2017-04-08 07:12 Dylan_Java_NYC 阅读(502) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/minimum-absolute-difference-in-bst/ 题目: Given a binary search tree with non-negative values, find the minimum ab 阅读全文
posted @ 2017-04-07 08:32 Dylan_Java_NYC 阅读(737) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/third-maximum-number/ 题目: Given a non-empty array of integers, return the third maximum number in this array. If 阅读全文
posted @ 2017-04-06 06:57 Dylan_Java_NYC 阅读(246) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/heaters/#/description 题目: Winter is coming! Your first job during the contest is to design a standard heater wit 阅读全文
posted @ 2017-04-01 10:12 Dylan_Java_NYC 阅读(569) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/perfect-number/#/description 题目: We define the Perfect Number is a positive integer that is equal to the sum of 阅读全文
posted @ 2017-04-01 09:27 Dylan_Java_NYC 阅读(335) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/reverse-string-ii/#/description 题目: Given a string and an integer k, you need to reverse the first k characters 阅读全文
posted @ 2017-04-01 07:44 Dylan_Java_NYC 阅读(657) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/detect-capital/#/description 题目: Given a word, you need to judge whether the usage of capitals in it is right or 阅读全文
posted @ 2017-04-01 06:12 Dylan_Java_NYC 阅读(308) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/nth-digit/ 题目: Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... Note:n 阅读全文
posted @ 2017-04-01 01:59 Dylan_Java_NYC 阅读(225) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/relative-ranks/#/description 题目: Given scores of N athletes, find their relative ranks and the people with the t 阅读全文
posted @ 2017-03-31 07:50 Dylan_Java_NYC 阅读(461) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/base-7/#/description 题目: Given an integer, return its base 7 string representation. Example 1: Example 2: Note:  阅读全文
posted @ 2017-03-30 08:16 Dylan_Java_NYC 阅读(278) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/next-greater-element-ii/ 题目: Given a circular array (the next element of the last element is the first element o 阅读全文
posted @ 2017-03-29 08:03 Dylan_Java_NYC 阅读(328) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/next-greater-element-i/description/ 题目: You are given two arrays (without duplicates) nums1 and nums2 where nums 阅读全文
posted @ 2017-03-29 07:43 Dylan_Java_NYC 阅读(686) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/keyboard-row/#/description 题目: Given a List of words, return the words that can be typed using letters of alphab 阅读全文
posted @ 2017-03-29 05:58 Dylan_Java_NYC 阅读(808) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/validate-ip-address/#/description 题目: Write a function to check whether an input string is a valid IPv4 address 阅读全文
posted @ 2017-03-22 08:58 Dylan_Java_NYC 阅读(394) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/132-pattern/ 题目: Given a sequence of n integers a1, a2, ..., an, a 132 pattern is a subsequence ai, aj, ak such 阅读全文
posted @ 2017-03-21 08:31 Dylan_Java_NYC 阅读(330) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/4sum-ii/?tab=Description 题目: Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) 阅读全文
posted @ 2017-03-09 15:18 Dylan_Java_NYC 阅读(319) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/longest-palindromic-subsequence/ 题目: Given a string s, find the longest palindromic subsequence's length in s. Y 阅读全文
posted @ 2017-03-03 14:59 Dylan_Java_NYC 阅读(449) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/all-oone-data-structure/?tab=Description 题目: Implement a data structure supporting the following operations: Cha 阅读全文
posted @ 2017-03-02 16:31 Dylan_Java_NYC 阅读(697) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/delete-node-in-a-bst/?tab=Description 题目: Given a root node reference of a BST and a key, delete the node with t 阅读全文
posted @ 2017-03-01 15:29 Dylan_Java_NYC 阅读(532) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/lfu-cache/ 题目: Design and implement a data structure for Least Frequently Used (LFU) cache. It should support th 阅读全文
posted @ 2017-02-27 16:42 Dylan_Java_NYC 阅读(1654) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/flatten-nested-list-iterator/ 题目: Given a nested list of integers, implement an iterator to flatten it. Each ele 阅读全文
posted @ 2017-02-25 03:46 Dylan_Java_NYC 阅读(732) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/ 题目: RandomizedCollection is a data structure that contains a coll 阅读全文
posted @ 2017-02-24 19:09 Dylan_Java_NYC 阅读(582) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/insert-delete-getrandom-o1/?tab=Description 题目: Design a data structure that supports all following operations i 阅读全文
posted @ 2017-02-24 18:26 Dylan_Java_NYC 阅读(633) 评论(0) 推荐(0)
摘要: 原题链接在这里:http://www.lintcode.com/en/problem/coins-in-a-line-iii/ 题目: There are n coins in a line. Two players take turns to take a coin from one of the 阅读全文
posted @ 2017-02-17 16:14 Dylan_Java_NYC 阅读(542) 评论(0) 推荐(0)
摘要: 原题链接在这里:http://www.lintcode.com/en/problem/coins-in-a-line-ii/ 题目: There are n coins with different value in a line. Two players take turns to take on 阅读全文
posted @ 2017-02-16 18:00 Dylan_Java_NYC 阅读(277) 评论(0) 推荐(0)
摘要: 原题链接在这里:http://www.lintcode.com/en/problem/coins-in-a-line/ 题目: There are n coins in a line. Two players take turns to take one or two coins from righ 阅读全文
posted @ 2017-02-16 17:53 Dylan_Java_NYC 阅读(237) 评论(0) 推荐(0)
摘要: 原题链接在这里:http://www.lintcode.com/en/problem/maximum-subarray-ii/ 题目: Given an array of integers, find two non-overlapping subarrays which have the larg 阅读全文
posted @ 2017-02-16 16:02 Dylan_Java_NYC 阅读(1231) 评论(0) 推荐(0)
摘要: 原题链接在这里:http://www.lintcode.com/en/problem/longest-increasing-continuous-subsequence-ii/ 题目: Give you an integer matrix (with row size n, column size 阅读全文
posted @ 2017-02-16 13:08 Dylan_Java_NYC 阅读(739) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/longest-increasing-subsequence/ 题目: Given an unsorted array of integers, find the length of longest increasing s 阅读全文
posted @ 2017-02-16 11:49 Dylan_Java_NYC 阅读(426) 评论(0) 推荐(0)
摘要: 原题链接在这里:http://www.lintcode.com/en/problem/longest-increasing-continuous-subsequence/ 题目: Give an integer array,find the longest increasing continuous 阅读全文
posted @ 2017-02-16 11:32 Dylan_Java_NYC 阅读(298) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters/ 题目: Given a string, find the length of the longest substri 阅读全文
posted @ 2017-02-10 09:10 Dylan_Java_NYC 阅读(1021) 评论(0) 推荐(0)
摘要: 原题链接在这里:http://www.lintcode.com/zh-cn/problem/sliding-window-matrix-maximum/ 题目: Given an array of n * m matrix, and a moving matrix window (size k * 阅读全文
posted @ 2017-02-09 15:38 Dylan_Java_NYC 阅读(510) 评论(0) 推荐(0)
摘要: 原题链接在这里:http://www.lintcode.com/en/problem/heapify/ 题目: Given an integer array, heapify it into a min-heap array. For a heap array A, A[0] is the root 阅读全文
posted @ 2017-02-09 05:49 Dylan_Java_NYC 阅读(277) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/sliding-window-median/?tab=Description 题目: Median is the middle value in an ordered integer list. If the size of 阅读全文
posted @ 2017-02-08 16:00 Dylan_Java_NYC 阅读(661) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/trapping-rain-water-ii/?tab=Description 题目: Given an m x n matrix of positive integers representing the height o 阅读全文
posted @ 2017-02-08 14:18 Dylan_Java_NYC 阅读(517) 评论(0) 推荐(0)
摘要: 原题链接在这里:http://www.lintcode.com/en/problem/find-the-weak-connected-component-in-the-directed-graph/ 题目: Find the number Weak Connected Component in th 阅读全文
posted @ 2017-02-04 12:06 Dylan_Java_NYC 阅读(567) 评论(0) 推荐(0)
摘要: 原题链接在这里:http://www.lintcode.com/en/problem/triangle-count/# 题目: Given an array of integers, how many three numbers can be found in the array, so that 阅读全文
posted @ 2017-02-03 14:27 Dylan_Java_NYC 阅读(489) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/sort-characters-by-frequency/ 题目: Given a string, sort it in decreasing order based on the frequency of characte 阅读全文
posted @ 2017-02-03 09:07 Dylan_Java_NYC 阅读(421) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/top-k-frequent-elements/ 题目: Given a non-empty array of integers, return the k most frequent elements. For examp 阅读全文
posted @ 2017-02-03 08:51 Dylan_Java_NYC 阅读(400) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 26 下一页