9.2 设想有个机器人坐在X*Y网格的左上角,只能向右、向下移动。机器人从(0,0)到(X,Y)有多少种走法?进阶:假设有些点为“禁区”,机器人不能踏足。设计一种算法,找到一条路径,让机器人从左上角移动到右下角。类似leetcode:Unique Paths和Unique Paths II解法:我们...
分类:
其他好文 时间:
2014-12-07 19:03:50
阅读次数:
191
代码模板: 1 void main(void) 2 { 3 OSInit(); 4 /* 安装uCOS-II的任务切换向量 */ 5 /* 创建用户起始任务TaskStart */ 6 OSStart(); 7 } 8 9 void TaskStart(void * pdata...
分类:
其他好文 时间:
2014-12-07 17:46:28
阅读次数:
291
这是LeetCode上的一道题目,求出对于一个string,至少切多少刀可以让所有的substring都是回文串。原题是 https://oj.leetcode.com/problems/palindrome-partitioning-ii/Given a string s, partition s...
分类:
其他好文 时间:
2014-12-07 16:24:04
阅读次数:
215
WP系统分析I 优I.1 Metro风格I.2 动态磁贴I.3 原生Office集成I.4 云服务,人脉、日程与PC同步,期待闹钟也可以同步I.5 Cortana语音助手小娜I.6 磁贴分组II 劣II.1 锁屏 II.1.1 界面自定义 II.1.2 解锁方式多样化II.2 日程农历 II....
Palindrome Partitioning IIGiven a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for ...
分类:
其他好文 时间:
2014-12-06 22:52:25
阅读次数:
291
Jump Game II Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represent...
分类:
其他好文 时间:
2014-12-06 22:42:02
阅读次数:
235
Search in Rotated Sorted Array IIFollow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity...
分类:
其他好文 时间:
2014-12-06 19:32:52
阅读次数:
173
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:
其他好文 时间:
2014-12-06 16:46:12
阅读次数:
225
任务可以是一个无限的循环,也可以在一次执行完毕后被删除掉。任务的返回类型必须定义成void,只是它决不返回。任务必须是以下两种结构之一:void YourTask(void *pdata){ for (;;) { /*用户代码*/ }}void YourTask(vo...
分类:
其他好文 时间:
2014-12-06 15:16:27
阅读次数:
244
主要包含命令:
分号使用示例:
&&运算符
II运算符
管道符 |
前面命令的正确输出作为后米命令的操作对象
最简单的命令:...
分类:
系统相关 时间:
2014-12-06 11:26:20
阅读次数:
287