题目链接: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 try...
分类:
其他好文 时间:
2015-03-15 23:45:04
阅读次数:
386
题目链接: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.
这道题的要求是向右旋转链表...
分类:
其他好文 时间:
2015-03-15 23:43:32
阅读次数:
353
题目链接: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 resp...
分类:
其他好文 时间:
2015-03-15 23:43:50
阅读次数:
310
题目链接: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 ei...
分类:
其他好文 时间:
2015-03-15 23:44:17
阅读次数:
329
题目链接:Valid Number
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem stat...
分类:
其他好文 时间:
2015-03-15 23:42:43
阅读次数:
286
题目描述 Description
一个大小为N(N<=17)的质数环是由1到N共N个自然数组成的一个数环,数环上每两个相邻的数字之和为质数。如下图是一个大小为6的质数环。为了方便描述,规定数环上的第一个数字总是1。如下图可用1 4 3 2 5 6来描述。若两个质数环,数字排列顺序相同则视为本质相同。现在要求你求出所有本质不同的数环。输入描述 Input Description只有一个数N,表示需求...
分类:
其他好文 时间:
2015-03-15 23:44:11
阅读次数:
325
一般对于后台界面都是采用BorderLayout进行布局的。BorderLayout也就是将界面分成五块,如下图所示,分别有:North、East、South、West、Center其中比较特殊的是Center这块区域,它是不固定的,会随着四块区域的变化而做出相应的调整。比如将West向左缩小10px,那么Center则会向West方向扩张10px。其实这个easyUI已经帮我们实现好了,我们只需要...
分类:
其他好文 时间:
2015-03-15 23:42:39
阅读次数:
355
关于项目中lua任务(某些没弄懂,但lua上耗费时间有点长了不看了)这段时间看了lua语法和项目中lua应用1.在lua中注册c库,在lua5.2中好像都是注册c库,相当于在lua中定义一个table,key是函数名字,value是函数指针m_spLuaState->RegLib("game", f...
分类:
其他好文 时间:
2015-03-15 23:40:14
阅读次数:
228
软件测试就是利用测试工具按照测试方案和流程对产品进行功能和性能测试,甚至根据需要编写不同的测试工具,设计和维护测试系统,对测试方案可能出现的问题进行分析和评估。执行测试用例后,需要跟踪故障,以确保开发的产品适合需求。 软件测试工作是一个系统而复杂的工程,软件测试的目的就是确保软件的质量、确...
分类:
其他好文 时间:
2015-03-15 23:42:04
阅读次数:
276
Xcode的ARC机制小结
分类:
其他好文 时间:
2015-03-15 23:41:42
阅读次数:
206
思路类似快速米,为了防止数相乘超出long long的范围。复杂度再加一个log(n);很实用的东西:ll mut(ll a,ll b){ ll res=0; while (b) { if (b&1) res=(res+a)%p; a=(a+a)%p; b>>=1; } return res;}ll...
分类:
其他好文 时间:
2015-03-15 23:40:36
阅读次数:
215
curr_menunot_curr"> {$vo.typeid|url=lists,###}{$vo.url}" data-transition="slidedown" data-ajax="false"> {$vo.typename} 备注:第2行里的c...
分类:
其他好文 时间:
2015-03-15 23:39:53
阅读次数:
208
遇到一个数据处理自动化的问题,于是打算开发一个基于excel的小工具。在业余时间一边自学一边实践,抽空把一些知识写下来以备今后参考,因为走的是盲人摸象的野路子,幼稚与错误请多包涵。开发环境基于VSTO,具体配置:visual studio 2010,VB .Net,excel 2007,文档级别的定...
分类:
其他好文 时间:
2015-03-15 23:41:49
阅读次数:
259
前言 一場自下而上的改革嘗試這篇文章剛開始動筆的時候,恰逢剛接到衛生部專家即將來津對我區基本公共衛生服務以及一系中轉項目的工作現況、資金使用情況進行檢查的通知。誠然我區的工作現況不便在此進行評說,但是,做為迎檢的大頭戲――「國家基本公共衛生服務項目」 ――也是我國公共衛生制度建設的重要組成部分,卻一...
分类:
其他好文 时间:
2015-03-15 23:40:50
阅读次数:
283
znode以某种方式发生变化时,“观察”(watch)机制可以让客户端得到通知.可以针对ZooKeeper服务的“操作”来设置观察,该服务的其他操作可以触发观察. 实现Watcher,复写process方法,处理收到的变更 /** * Watcher Server,处理收到的变更 ...
分类:
其他好文 时间:
2015-03-15 23:39:00
阅读次数:
271
package com.baidu.baidulocationdemo;import com.baidu.location.LocationClient;import com.baidu.location.LocationClientOption;import com.baidu.location....
分类:
其他好文 时间:
2015-03-15 23:38:39
阅读次数:
151
记录一些我用过的命令 1 sudo apt-get update 3 sudo apt-get install vim 5 vim /etc/apt/sources.list 6 cd /etc/apt/ 8 sudo vim /etc/apt/sources...
分类:
其他好文 时间:
2015-03-15 23:39:07
阅读次数:
172