摘要:        
Java LinkedList add 是加在list尾部. LinkedList push 施加在list头部. 等同于addFirst.    
阅读全文
 
        
        
            posted @ 2019-06-04 12:39
Dylan_Java_NYC
阅读(615)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/linked-list-components/ 题目: We are given head, the head node of a linked list containing unique integer values.     
阅读全文
 
        
        
            posted @ 2019-06-04 01:07
Dylan_Java_NYC
阅读(283)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/next-greater-node-in-linked-list/ 题目: We are given a linked list with head as the first node. Let's number the n    
阅读全文
 
        
        
            posted @ 2019-06-03 13:36
Dylan_Java_NYC
阅读(803)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/split-linked-list-in-parts/submissions/ 题目: Given a (singly) linked list with head node root, write a function t    
阅读全文
 
        
        
            posted @ 2019-06-03 07:13
Dylan_Java_NYC
阅读(247)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/design-linked-list/ 题目: Design your implementation of the linked list. You can choose to use the singly linked l    
阅读全文
 
        
        
            posted @ 2019-06-03 06:20
Dylan_Java_NYC
阅读(614)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/middle-of-the-linked-list/ 题目: Given a non-empty, singly linked list with head node head, return a middle node o    
阅读全文
 
        
        
            posted @ 2019-06-02 02:53
Dylan_Java_NYC
阅读(177)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/kth-largest-element-in-a-stream/description/ 题目: Design a class to find the kth largest element in a stream. Not    
阅读全文
 
        
        
            posted @ 2018-10-14 07:20
Dylan_Java_NYC
阅读(759)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/most-common-word/description/ 题目: Given a paragraph and a list of banned words, return the most frequent word th    
阅读全文
 
        
        
            posted @ 2018-10-11 11:42
Dylan_Java_NYC
阅读(357)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/pacific-atlantic-water-flow/ 题目: Given an m x n matrix of non-negative integers representing the height of each     
阅读全文
 
        
        
            posted @ 2018-09-10 04:31
Dylan_Java_NYC
阅读(370)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/01-matrix/description/ 题目: Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell.    
阅读全文
 
        
        
            posted @ 2018-09-07 07:17
Dylan_Java_NYC
阅读(475)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list/description/ 题目: You are given a doubly linked list which in addition to    
阅读全文
 
        
        
            posted @ 2018-09-06 07:36
Dylan_Java_NYC
阅读(1160)
推荐(0)
        
        
 
    
    
        
        
        
        
            posted @ 2018-09-04 04:29
Dylan_Java_NYC
阅读(88)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/employee-free-time/description/ 题目: We are given a list schedule of employees, which represents the working time    
阅读全文
 
        
        
            posted @ 2018-08-01 08:39
Dylan_Java_NYC
阅读(698)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/sliding-puzzle/ 题目: On a 2x3 board, there are 5 tiles represented by the integers 1 through 5, and an empty squa    
阅读全文
 
        
        
            posted @ 2018-07-29 04:55
Dylan_Java_NYC
阅读(548)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/pour-water/description/ 题目: We are given an elevation map, heights[i] representing the height of the terrain at     
阅读全文
 
        
        
            posted @ 2018-07-28 08:40
Dylan_Java_NYC
阅读(352)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
在C/C++中,需要自己负责object的creation 和 destruction. 如果忘记了destruction, 就容易出现OutOfMemoryErrors. Java中会有GC直接处理unreachable objects. 什么是unreachable objects: 在stac    
阅读全文
 
        
        
            posted @ 2018-07-25 10:14
Dylan_Java_NYC
阅读(247)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/non-overlapping-intervals/ 题目: Given a collection of intervals, find the minimum number of intervals you need to    
阅读全文
 
        
        
            posted @ 2018-03-02 08:16
Dylan_Java_NYC
阅读(516)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/evaluate-division/description/ 题目: Equations are given in the format A / B = k, where A and B are variables repr    
阅读全文
 
        
        
            posted @ 2018-02-18 13:05
Dylan_Java_NYC
阅读(947)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/minimize-max-distance-to-gas-station/description/ 题目: On a horizontal number line, we have gas stations at posit    
阅读全文
 
        
        
            posted @ 2018-02-18 10:14
Dylan_Java_NYC
阅读(1846)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/sort-transformed-array/description/ 题目: Given a sorted array of integers nums and integer values a, b and c. App    
阅读全文
 
        
        
            posted @ 2018-02-18 08:17
Dylan_Java_NYC
阅读(375)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/minesweeper/description/ 题目: Let's play the minesweeper game (Wikipedia, online game)! You are given a 2D char m    
阅读全文
 
        
        
            posted @ 2018-02-13 09:02
Dylan_Java_NYC
阅读(483)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/data-stream-as-disjoint-intervals/description/ 题目: Given a data stream input of non-negative integers a1, a2, ..    
阅读全文
 
        
        
            posted @ 2018-02-11 10:12
Dylan_Java_NYC
阅读(495)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/min-cost-climbing-stairs/description/ 题目: On a staircase, the i-th step has some non-negative cost cost[i] assig    
阅读全文
 
        
        
            posted @ 2018-02-08 08:50
Dylan_Java_NYC
阅读(279)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/find-anagram-mappings/description/ 题目: Given two lists Aand B, and B is an anagram of A. B is an anagram of A me    
阅读全文
 
        
        
            posted @ 2018-02-07 15:55
Dylan_Java_NYC
阅读(459)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/longest-repeating-character-replacement/description/ 题目: Given a string that consists of only uppercase English     
阅读全文
 
        
        
            posted @ 2018-02-04 07:41
Dylan_Java_NYC
阅读(1051)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/binary-tree-longest-consecutive-sequence-ii/description/ 题目: Given a binary tree, you need to find the length of    
阅读全文
 
        
        
            posted @ 2018-01-31 07:45
Dylan_Java_NYC
阅读(825)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/cut-off-trees-for-golf-event/ 题目: You are asked to cut off trees in a forest for a golf event. The forest is rep    
阅读全文
 
        
        
            posted @ 2018-01-30 16:40
Dylan_Java_NYC
阅读(629)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/boundary-of-binary-tree/description/ 题目: Given a binary tree, return the values of its boundary in anti-clockwis    
阅读全文
 
        
        
            posted @ 2018-01-28 10:19
Dylan_Java_NYC
阅读(512)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/partition-labels/description/ 题目: A string S of lowercase letters is given. We want to partition this string int    
阅读全文
 
        
        
            posted @ 2018-01-27 11:30
Dylan_Java_NYC
阅读(589)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/most-frequent-subtree-sum/description/ 题目: Given the root of a tree, you are asked to find the most frequent sub    
阅读全文
 
        
        
            posted @ 2018-01-27 09:35
Dylan_Java_NYC
阅读(313)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/serialize-and-deserialize-bst/description/ 题目: Serialization is the process of converting a data structure or ob    
阅读全文
 
        
        
            posted @ 2018-01-25 15:51
Dylan_Java_NYC
阅读(701)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/word-abbreviation/ 题目: Given an array of n distinct non-empty strings, you need to generate minimal possible abb    
阅读全文
 
        
        
            posted @ 2018-01-22 15:36
Dylan_Java_NYC
阅读(163)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/remove-k-digits/description/ 题目: Given a non-negative integer num represented as a string, remove k digits from     
阅读全文
 
        
        
            posted @ 2018-01-22 07:39
Dylan_Java_NYC
阅读(582)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/ternary-expression-parser/description/ 题目: Given a string representing arbitrarily nested ternary expressions, c    
阅读全文
 
        
        
            posted @ 2018-01-21 09:09
Dylan_Java_NYC
阅读(283)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/frog-jump/description/ 题目: A frog is crossing a river. The river is divided into x units and at each unit there     
阅读全文
 
        
        
            posted @ 2018-01-20 02:22
Dylan_Java_NYC
阅读(307)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/course-schedule-iii/ 题目: There are n different online courses numbered from 1 to n. Each course has some duratio    
阅读全文
 
        
        
            posted @ 2018-01-19 10:36
Dylan_Java_NYC
阅读(395)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/my-calendar-i/description/ 题目: Implement a MyCalendar class to store your events. A new event can be added if ad    
阅读全文
 
        
        
            posted @ 2018-01-18 15:34
Dylan_Java_NYC
阅读(241)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/permutation-in-string/description/ 题目: Given two strings s1 and s2, write a function to return true if s2 contai    
阅读全文
 
        
        
            posted @ 2018-01-17 09:41
Dylan_Java_NYC
阅读(272)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/find-permutation/description/ 题目: By now, you are given a secret signature consisting of character 'D' and 'I'.     
阅读全文
 
        
        
            posted @ 2018-01-17 09:07
Dylan_Java_NYC
阅读(196)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/number-of-atoms/description/ 题目: Given a chemical formula (given as a string), return the count of each atom. An    
阅读全文
 
        
        
            posted @ 2018-01-11 11:26
Dylan_Java_NYC
阅读(473)
推荐(0)