上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 26 下一页
摘要: 原题链接在这里:https://leetcode.com/problems/shortest-unsorted-continuous-subarray/ 题目: Given an integer array, you need to find one continuous subarray that 阅读全文
posted @ 2017-09-20 13:47 Dylan_Java_NYC 阅读(236) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/non-decreasing-array/description/ 题目: Given an array with n integers, your task is to check if it could become n 阅读全文
posted @ 2017-09-20 12:56 Dylan_Java_NYC 阅读(437) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/design-compressed-string-iterator/description/ 题目: Design and implement a data structure for a compressed string 阅读全文
posted @ 2017-09-20 02:04 Dylan_Java_NYC 阅读(463) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/largest-palindrome-product/description/ 题目: Find the largest palindrome made from the product of two n-digit num 阅读全文
posted @ 2017-09-19 13:43 Dylan_Java_NYC 阅读(485) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/can-place-flowers/ 题目: Suppose you have a long flowerbed in which some of the plots are planted and some are not 阅读全文
posted @ 2017-09-19 01:40 Dylan_Java_NYC 阅读(295) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/sum-of-square-numbers/description/ 题目: Given a non-negative integer c, your task is to decide whether there're t 阅读全文
posted @ 2017-09-18 13:42 Dylan_Java_NYC 阅读(312) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/maximum-average-subarray-i/description/ 题目: Given an array consisting of n integers, find the contiguous subarra 阅读全文
posted @ 2017-09-18 12:48 Dylan_Java_NYC 阅读(189) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/number-of-longest-increasing-subsequence/description/ 题目: Given an unsorted array of integers, find the number o 阅读全文
posted @ 2017-09-16 11:14 Dylan_Java_NYC 阅读(740) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/longest-continuous-increasing-subsequence/ 题目: Given an unsorted array of integers, find the length of longest c 阅读全文
posted @ 2017-09-16 10:24 Dylan_Java_NYC 阅读(326) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/ 题目: Given a non-empty special binary tree consisting of nodes with the non 阅读全文
posted @ 2017-09-16 10:03 Dylan_Java_NYC 阅读(502) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/longest-harmonious-subsequence/description/ 题目: We define a harmonious array is an array where the difference be 阅读全文
posted @ 2017-09-16 09:51 Dylan_Java_NYC 阅读(163) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/set-mismatch/description/ 题目: The set S originally contains numbers from 1 to n. But unfortunately, due to the d 阅读全文
posted @ 2017-09-16 08:57 Dylan_Java_NYC 阅读(479) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/student-attendance-record-i/description/ 题目: You are given a string representing an attendance record for a stud 阅读全文
posted @ 2017-09-15 14:39 Dylan_Java_NYC 阅读(182) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/image-smoother/description/ 题目: Given a 2D integer matrix M representing the gray scale of an image, you need to 阅读全文
posted @ 2017-09-15 01:45 Dylan_Java_NYC 阅读(316) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/range-addition-ii/description/ 题目: Given an m * n matrix M initialized with all 0's and several update operation 阅读全文
posted @ 2017-09-14 08:38 Dylan_Java_NYC 阅读(130) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/range-addition/description/ 题目: Assume you have an array of length n initialized with all 0's and are given k up 阅读全文
posted @ 2017-09-14 08:27 Dylan_Java_NYC 阅读(273) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/minimum-index-sum-of-two-lists/description/ 题目: Suppose Andy and Doris want to choose a restaurant for dinner, a 阅读全文
posted @ 2017-09-14 05:05 Dylan_Java_NYC 阅读(145) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/binary-tree-tilt/description/ 题目: Given a binary tree, return the tilt of the whole tree. The tilt of a tree nod 阅读全文
posted @ 2017-09-14 01:42 Dylan_Java_NYC 阅读(176) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/maximum-product-of-three-numbers/ 题目: Given an integer array, find three numbers whose product is maximum and ou 阅读全文
posted @ 2017-09-13 13:46 Dylan_Java_NYC 阅读(368) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/convert-bst-to-greater-tree/description/ 题目: Given a Binary Search Tree (BST), convert it to a Greater Tree such 阅读全文
posted @ 2017-09-13 13:21 Dylan_Java_NYC 阅读(131) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/trim-a-binary-search-tree/ 题目: Given a binary search tree and the lowest and highest boundaries as L and R, trim 阅读全文
posted @ 2017-09-13 08:19 Dylan_Java_NYC 阅读(351) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/judge-route-circle/description/ 题目: Initially, there is a Robot at position (0, 0). Given a sequence of its move 阅读全文
posted @ 2017-09-13 02:05 Dylan_Java_NYC 阅读(355) 评论(0) 推荐(0)
摘要: Java String.split() method 有如下几种特殊情况: 1. 分隔符出现在首尾 结果是: 首部的分隔符革出一个空位,尾部分隔符没有革出空位. 这里的空位不是空格.参看3 和 4. 2. 结果: 如果中间没有革出值,那么所有值都清空. 3. 结果: 若是首尾出现空格,那么会被单独革 阅读全文
posted @ 2017-09-13 02:00 Dylan_Java_NYC 阅读(237) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/two-sum-iv-input-is-a-bst/description/ 题目: Given a Binary Search Tree and a target number, return true if there 阅读全文
posted @ 2017-09-12 08:53 Dylan_Java_NYC 阅读(532) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/average-of-levels-in-binary-tree/discuss/ 题目: Given a non-empty binary tree, return the average value of the nod 阅读全文
posted @ 2017-09-12 01:59 Dylan_Java_NYC 阅读(354) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/merge-two-binary-trees/ 题目: Given two binary trees and imagine that when you put one of them to cover the other, 阅读全文
posted @ 2017-08-17 13:49 Dylan_Java_NYC 阅读(389) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/maximum-distance-in-arrays/description/ 题目: Given m arrays, and each array is sorted in ascending order. Now you 阅读全文
posted @ 2017-08-15 03:05 Dylan_Java_NYC 阅读(221) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/find-mode-in-binary-search-tree/ 题目: Given the root of a binary search tree (BST) with duplicates, return all th 阅读全文
posted @ 2017-06-28 08:00 Dylan_Java_NYC 阅读(797) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/diameter-of-binary-tree/ 题目: Given a binary tree, you need to compute the length of the diameter of the tree. Th 阅读全文
posted @ 2017-06-28 07:04 Dylan_Java_NYC 阅读(369) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/construct-string-from-binary-tree/ 题目: You need to construct a string consists of parenthesis and integers from 阅读全文
posted @ 2017-06-25 11:27 Dylan_Java_NYC 阅读(390) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/array-partition-i/#/description 题目: Given an array of 2n integers, your task is to group these integers into n p 阅读全文
posted @ 2017-06-25 09:55 Dylan_Java_NYC 阅读(655) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/distribute-candies/#/description 题目: Given an integer array with even length, where different numbers in this ar 阅读全文
posted @ 2017-06-23 13:51 Dylan_Java_NYC 阅读(202) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/reshape-the-matrix/#/description 题目: In MATLAB, there is a very useful function called 'reshape', which can resh 阅读全文
posted @ 2017-06-23 13:39 Dylan_Java_NYC 阅读(225) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/subtree-of-another-tree/ 题目: Given two non-empty binary trees s and t, check whether tree t has exactly the same 阅读全文
posted @ 2017-06-21 15:56 Dylan_Java_NYC 阅读(510) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/longest-uncommon-subsequence-ii/#/description 题目: Given a list of strings, you need to find the longest uncommon 阅读全文
posted @ 2017-06-20 10:04 Dylan_Java_NYC 阅读(548) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/longest-uncommon-subsequence-i/#/description 题目: Given a group of two strings, you need to find the longest unco 阅读全文
posted @ 2017-06-20 09:23 Dylan_Java_NYC 阅读(291) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/reverse-words-in-a-string-iii/#/description 题目: Given a string, you need to reverse the order of characters in e 阅读全文
posted @ 2017-06-15 08:47 Dylan_Java_NYC 阅读(377) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/decode-string/#/description 题目: Given an encoded string, return it's decoded string. The encoding rule is: k[enc 阅读全文
posted @ 2017-04-23 09:50 Dylan_Java_NYC 阅读(642) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/battleships-in-a-board/ 题目: Given an 2D board, count how many battleships are in it. The battleships are represe 阅读全文
posted @ 2017-04-23 08:41 Dylan_Java_NYC 阅读(302) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/find-leaves-of-binary-tree/#/description 题目: Given a binary tree, collect a tree's nodes as if you were doing th 阅读全文
posted @ 2017-04-21 08:36 Dylan_Java_NYC 阅读(849) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 26 下一页