- 博客(19)
- 资源 (4)
- 收藏
- 关注
原创 LeetCode 617. Merge Two Binary Trees
617. Merge Two Binary Trees一、问题描述 Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not. You ne
2017-06-26 15:21:49 594
原创 LeetCode 500. Keyboard Row
500. Keyboard Row一、问题描述 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 image below. 二、输入输出Example 1:Input:
2017-06-26 14:59:34 517
原创 LeetCode 2. Add Two Numbers
2. Add Two Numbers一、问题描述 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add th
2017-06-23 16:42:38 643
原创 LeetCode 61. Rotate List
61. Rotate List一、问题描述 Given a list, rotate the list to the right by k places, where k is non-negative.二、输入输出For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL.三、解题思路这道题的
2017-06-22 17:33:42 693
原创 LeetCode 330. Patching Array
330. Patching Array一、问题描述 Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n]inclusive can be formed by the sum of some e
2017-06-21 23:56:21 643
原创 LeetCode 502. IPO
502. IPO一、问题描述 Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capital, LeetCode would like to work on some projects to increase its capital before th
2017-06-21 21:46:35 721
原创 MACBOOK JDK安装位置以及环境变量配置
MACBOOK JDK安装位置以及环境变量配置1. jdk安装位置Apple官方推荐的是,使用/usr/libexec/java_home作为安装位置。这是一个环境变量,可以使用命令echo $(/usr/libexec/java_home)来查看:正如你看到的那样,下面的路径才是你java真正的路径。2.配置环境变量如果用的是zsh 那么修改~/.zshrc文件,如果使用的默认的bash,那么修
2017-06-20 20:17:38 2341
原创 LeetCode 406. Queue Reconstruction by Height
406. Queue Reconstruction by Height一、问题描述 Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and
2017-06-19 20:38:30 488
原创 LeetCode 435. Non-overlapping Intervals
435. Non-overlapping Intervals一、问题描述 Given a collection of intervals, find the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping. Note: You
2017-06-19 20:38:15 576
原创 LeetCode 621. Task Scheduler
621. Task Scheduler一、问题描述 Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks could be done without origin
2017-06-19 16:34:44 3742
原创 LeetCode 402. Remove K Digits
402. Remove K Digits一、问题描述 Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: The length of
2017-06-19 14:35:10 638
原创 LeetCode 376. Wiggle Subsequence
376. Wiggle Subsequence一、问题描述 A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The first difference (i
2017-06-16 12:44:09 483
原创 LeetCode 452. Minimum Number of Arrows to Burst Balloons
452. Minimum Number of Arrows to Burst Balloons一、问题描述 There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of th
2017-06-15 20:10:50 371
原创 LeetCode 392. Is Subsequence
392. Is Subsequence一、问题描述 Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s and t. t is potentially a very l
2017-06-06 12:19:59 242
原创 LeetCode 134. Gas Station
134. Gas Station一、问题描述 There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to t
2017-06-05 21:26:39 232
原创 LeetCode 55. Jump Game
55. Jump Game一、问题描述 Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that p
2017-06-05 20:20:39 222
原创 LeetCode 455. Assign Cookies
455. Assign Cookies一、问题描述 Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi, which i
2017-06-05 19:13:38 234
原创 LeetCode 486. Predict the Winner
486. Predict the Winner一、问题描述 Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the player 2 and then player 1 and so
2017-06-05 17:42:22 299
原创 LeetCode 416. Partition Equal Subset Sum
416. Partition Equal Subset Sum一、问题描述 Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is
2017-06-05 16:15:50 423
Linux内核完全剖析基于0.12内核.pdf (附linux kernel 0.12源码和测试软件,亲测可用)
2017-06-02
json所需的全部jar包(共7个-亲测可用)
2015-10-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人