自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 资源 (1)
  • 收藏
  • 关注

原创 Largest Rectangle in Histogram

参考  LeetCode: Largest Rectangle in Histogram(直方图最大面积)

2016-07-11 11:24:17 338

原创 Longest Valid Parentheses

http://blog.csdn.net/yapian8/article/details/28239003?utm_source=tuicool&utm_medium=referral个人觉得讲解的很好,易懂

2016-07-10 21:19:39 300

原创 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 281

原创 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 605

原创 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 268

原创 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 231

原创 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 258

原创 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 272

原创 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 310

原创 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 314

原创 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 347

原创 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 314

原创 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 290

原创 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 327

原创 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 336

原创 java传送json到jni,jni传送json到java

java传送json到jni,jni传送json到java

2015-12-31 17:11:59 3558 1

原创 线程之间的同步和通信,synchronized,wait(),notify(),notifyAll()

线程之间的同步和通信,synchronized,wait(),notify(),notifyAll()段落一最近因为项目的原因,涉及到了线程通信,下面是我学习的总结,不对的地方,欢迎大家指出来噢!同步:synchronnized    一提到线程,就会联想到同步,什么叫做同步呢?在什么样的情况下要用到同步呢?     在这之前,得先知道临界区;     多个线程竞争同一资源,我们把这资源叫做共享

2015-11-26 20:26:58 513

原创 倒计时显示时间,显示毫秒

源码里显示的是从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 3571 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 761

原创 Android 在MediaRecorder中碰到的几个常见的问题

1、录制视频时,视频旋转了90度,添加下面代码解决问题;2、录制完的视频手机上播放旋转了90度,添加下面代码解决问题;3、手机上播放没问题了,但是移到电脑上播放,视频还是旋转了90度;我的是这样改的:

2015-10-28 09:17:12 9046 7

原创 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 2582 1

java传送json到jni,jni传送json到java

activity传送一个json给jni,jni接收之后传送一个json给activity

2015-12-31

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除