自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

nianhua120的专栏

转载请注明csdn的地址,谢谢。

  • 博客(20)
  • 资源 (14)
  • 收藏
  • 关注

原创 LeetCode17 17. Letter Combinations of a Phone Number My Submissions QuestionEditorial Solution

Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below.Input:Digit st

2016-06-29 17:05:17 357

原创 Leetcode12. Integer to Roman

Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.这道题我是考虑10进制左移运算,求出各个位的值,然后用查表法来构造字符串,其中0用“”来代替。public class Solution { public

2016-06-29 11:11:10 232

原创 Leetcode 21. Merge Two Sorted Lists

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.这道题其实就是MergeSort的升级版。思路就采用MergeSort。代码如下。/** * Def

2016-06-28 16:44:15 213

原创 leetcode 24. Swap Nodes in Pairs

Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your algorithm should use only constant space. Y

2016-06-28 13:00:36 181

原创 leetcode 58. Length of Last Word

Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.Note: A word is

2016-06-27 13:02:37 176

原创 leetcode61 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.就是将头节点设置为k%n; 结尾为k%n -1;我的代码如下。

2016-06-27 10:18:45 197

原创 120. Triangle

Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the following triangle[ [2], [3,4],

2016-06-24 19:09:25 229

原创 136. Single Number

Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without using e

2016-06-24 14:23:38 182

原创 leetcode 78. Subsets

Given a set of distinct integers, nums, return all possible subsets.Note: The solution set must not contain duplicate subsets.For example,If nums = [1,2,3], a solution is:[ [3], [1],

2016-06-24 12:36:25 197

原创 leetcode 41 First Missing Positive

Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm should run in O(n) time and uses constant

2016-06-24 12:24:03 227

原创 TrieTree的实现

TrieTree是字典树,在文本处理中非常好用。先建立节点/** * Created by kyle on 2016/6/23. */public class TrieNode { private final static int NUMBER = 26; private char _value ; private boolean isWorld;

2016-06-23 16:43:48 269

原创 leetcode 189. Rotate Array

Rotate an array of n elements to the right by k steps.For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4].Note:Try to come up as many solutions as yo

2016-06-22 12:23:49 199

原创 230. Kth Smallest Element in a BST

Given a binary search tree, write a function kthSmallest to find the kth smallest element in it.Note: You may assume k is always valid, 1 ≤ k ≤ BST's total elements.Follow up:What if the BST i

2016-06-15 10:15:23 193

原创 leetcode2 add two number

You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link

2016-06-13 15:27:16 270

原创 JamesMusic浅读--------9,播放界面初显及播放类完善

上一个章节已经实现了播放功能,这一章节主要实现播放界面的初步。先加载出NowPlayingActivity。/** * Created by kankan on 2016/6/4. */public class NowPlayingActivity extends FragmentActivity { //Common objects. private Contex

2016-06-05 21:50:57 243

原创 JamesMusic浅读--------8,音乐文件播放

设置ListView的onItemClick函数为这个函数调用initPlayback,这个函数根据界面情况,启动播放界面,或者后台音播放服务没开启的话,开启服务。这里先实现开启服务

2016-06-04 10:20:05 379

原创 JamesMusic浅读--------7,音乐列表界面显示

首先我们实现从WecomelActivity到MainActivity。实现方法就是在WelcomeActivity的最后一个界面监听,音乐库building事件 @Override public void onFinishBuildingLibrary(AsyncBuildLibraryTask task) { task.mBuildLibraryProgres

2016-06-02 21:58:12 310

原创 LeetCode 200. Number of Islands

Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assu

2016-06-02 09:50:34 254

原创 leetcode 198. House Robber

you are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent house

2016-06-01 15:26:28 243

原创 LeetCode162. Find Peak Element

A peak element is an element that is greater than its neighbors.Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.The array may contain multiple peaks, in

2016-06-01 10:37:03 227

MyJamseMusicV5

http://blog.csdn.net/nianhua120/article/details/51530879

2016-06-04

MyJamseMusicV4

http://blog.csdn.net/nianhua120/article/details/51527343

2016-06-04

MyJamsMusicV2

http://blog.csdn.net/nianhua120/article/details/51510297

2016-06-04

MyJamsMusicV1

http://blog.csdn.net/nianhua120/article/details/51570524

2016-06-04

SwipeMenuListViewV8

http://blog.csdn.net/nianhua120/article/details/51474593

2016-05-22

SwipeMenuListViewV7

http://blog.csdn.net/nianhua120/article/details/51428331

2016-05-22

MySwipeMenuListViewV4

资源的详细描述见 http://blog.csdn.net/nianhua120/article/details/51415912

2016-05-15

MySwipeMenuListView3

本代码说明详见 http://blog.csdn.net/nianhua120/article/details/51405522

2016-05-14

FrameLayout动态布局

该资源与文章http://blog.csdn.net/nianhua120/article/details/51387668 相配套。详细请参考该文章。

2016-05-14

MySwipeMenuListView1

这是我仿写的SwipeMenuListView的第一章节,只实现了手指移动的监测功能。

2016-05-11

STM32F0系列参考例程

该例程不是官方开发板的例程,而是我买的开发板赠送的。包括了IO口,SPI,DMA,USART等。基本上每个模块都有了。学习STM32的同学拿去。该开发板为STM32F051,凡是STM32F0xx系列的都行。

2012-08-30

c#串口配置窗体(可用于继承窗体)serialport类

这是一个用c#写的窗口配置窗体。包含了异常处理。使用serialport组件。适合win7,xp,vista等。可以生产dll文件,用于继承窗体。很是方便。

2012-02-25

单片机钢琴protel+keil仿真程序 下下来即可运行

这是一个用单片机仿真的电子钢琴程序,对单片机初学者来说是一个很不错的列子,文件包括protel仿真及keil写的汇编代码。相当好用奥。

2011-05-05

单片机数码管动态显示源程序及仿真电路文件

这是一个完整的带仿真电路的单片机动态显示数码管程序,希望对大家有用。protel和keil仿真奥。

2011-05-02

空空如也

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

TA关注的人

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