- 博客(21)
- 资源 (1)
- 收藏
- 关注
原创 Largest Rectangle in Histogram
参考 LeetCode: Largest Rectangle in Histogram(直方图最大面积)
2016-07-11 11:24:17
374
原创 Longest Valid Parentheses
http://blog.youkuaiyun.com/yapian8/article/details/28239003?utm_source=tuicool&utm_medium=referral个人觉得讲解的很好,易懂
2016-07-10 21:19:39
340
原创 Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is
2016-07-06 15:39:36
335
原创 Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example,Given 1->2->3->3->4->4->5, return 1->2->5.Given 1->
2016-07-06 10:30:17
635
原创 Minimum Path Sum
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: You can only move either down or right at
2016-07-01 20:05:22
299
原创 Unique Paths II
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space is marked as 1 and 0 respectively in the
2016-07-01 19:49:31
266
原创 Unique Paths
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the
2016-07-01 19:15:49
289
原创 Binary Tree Level Order Traversal II
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For example:Given binary tree [3,9,20,null,null,1
2016-06-13 19:46:44
306
原创 Binary Tree Level Order Traversal
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree {3,9,20,#,#,15,7}, 3 / \ 9 20
2016-05-29 15:37:12
344
原创 Permutations
Given a collection of distinct numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], and [3,2,1]. Arr
2016-03-23 16:49:52
357
原创 Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-negative.大数相乘//蠢法 public String multip
2016-03-23 15:36:43
375
原创 Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be chosen from C unlimited numb
2016-03-18 21:07:30
347
原创 Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array.
2016-03-15 21:05:38
323
原创 Search for a Range
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the order of O(log n).If the target is not found
2016-03-15 21:02:46
358
原创 ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I
2016-03-02 20:39:26
359
原创 线程之间的同步和通信,synchronized,wait(),notify(),notifyAll()
线程之间的同步和通信,synchronized,wait(),notify(),notifyAll()段落一最近因为项目的原因,涉及到了线程通信,下面是我学习的总结,不对的地方,欢迎大家指出来噢!同步:synchronnized 一提到线程,就会联想到同步,什么叫做同步呢?在什么样的情况下要用到同步呢? 在这之前,得先知道临界区; 多个线程竞争同一资源,我们把这资源叫做共享
2015-11-26 20:26:58
546
原创 倒计时显示时间,显示毫秒
源码里显示的是从5秒000毫秒减到0秒000毫秒,具体看上传的代码,不懂的可以留言!package com.example.timedemo;import java.text.SimpleDateFormat;import java.util.Date;import java.util.Timer;import java.util.TimerTask;import android
2015-11-10 09:48:30
3672
1
原创 Tomcat和eclipse连接
1、配置Tomcat环境,这边就不多说了;2、Window->preferences->Tomcat,在Tomcat home填上你安装Tomcat的路径;点击OK;3、window->show View->Server->Servers,点击OK;在下面会看到4、然后点击,出来下面这个,点击finish。5、在左边出现了,Tomcat和ecli
2015-11-04 18:45:51
809
原创 Android 在MediaRecorder中碰到的几个常见的问题
1、录制视频时,视频旋转了90度,添加下面代码解决问题;2、录制完的视频手机上播放旋转了90度,添加下面代码解决问题;3、手机上播放没问题了,但是移到电脑上播放,视频还是旋转了90度;我的是这样改的:
2015-10-28 09:17:12
9221
1
原创 Duplicate methods named spliterator with the parameters () and () are inherited from the types Colle
Duplicate methods named spliterator with the parameters () and () are inherited from the types Collection<Map.Entry<String,String>> and Iterable<Map.Entry<String,String>>
2015-05-25 10:31:36
2636
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人