码迷,mamicode.com
首页 >  
搜索关键字:do it    ( 12356个结果
ZOJ 3791 An Easy Game [组合计数]
题目地址: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3791题目描述: 给定两个长度为n的01串s1,s2,要求用k步,每一步反转s1的m个位置的数码(即0变为1,1变为0),问能有多少种做法,在k步之后将s1变成s....
分类:其他好文   时间:2014-07-22 22:53:54    阅读次数:193
Lesson 13-14 How often do you exercise?
一 Words 1 stuck in 卡在 e.g. Many over 30s feel stuck in a financial rut. 很多超过30岁的人都觉得自己的经济状况很难有所改变。 2 elevator 按键的电梯 escalator传送带的电梯 3 walkable 适于步行的 4...
分类:其他好文   时间:2014-07-22 22:50:55    阅读次数:224
do while 循环和while循环的区别
do while 循环和while循环的区别 1、do while循环是先执行循环体,然后判断循环条件,如果为真,则执行下一步循环,否则终止循环;    while循环是先判断循环条件,如果条件为真则执行循环体; 2、do while循环条件后面必须有一个分号,这个分号表明循环结束。...
分类:其他好文   时间:2014-07-20 10:32:28    阅读次数:189
分析USB平台设备模型框架(1)
start_kernel rest_init(); kernel_thread(kernel_init, NULL, CLONE_FS | CLONE_SIGHAND); do_basic_setup(); driver_init(); void __init driver_init(void) void __init driver_init(vo...
分类:其他好文   时间:2014-07-20 00:10:38    阅读次数:318
【LeetCode with Python】 Rotate Image
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place?...
分类:编程语言   时间:2014-07-19 23:46:49    阅读次数:516
LeetCode || Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. 判断一个int值是否为回文数。 本题有几点需要注意: (1)不能用额外存储空间,也就是说只能用常数空间解决;诸如将int转换为string再去比较字符是不可行的; (2)判断回文数的方法有两个:从中间开始向两头判断、从两头向中间判断;后者更简...
分类:其他好文   时间:2014-07-19 23:22:39    阅读次数:345
LeetCode:Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:其他好文   时间:2014-07-19 22:19:36    阅读次数:202
【leetcode】Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.题解:如下图所示的一棵树: ...
分类:其他好文   时间:2014-07-19 19:00:44    阅读次数:262
【leetcode刷题笔记】Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.类似http://www.cn...
分类:其他好文   时间:2014-07-19 18:19:06    阅读次数:243
关于开源的RTP——jrtplib的使用
session.BeginDataAccess(); if (session.GotoFirstSource()){ do{ RTPPacket *packet; while ((packet = session.GetNextPacket()) != 0){ ...
分类:其他好文   时间:2014-07-19 17:34:58    阅读次数:243
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!