码迷,mamicode.com
首页 >  
搜索关键字:second    ( 4896个结果
LintCode_68 二叉树中序遍历
题目 给出一棵二叉树,返回其节点值的后序遍历。 思路 后序比较麻烦 需要另外一个变量来记录当前节点入栈的次数 设计pair<TreeNode*, int> p; p.first 为二叉树节点 p.second 为当前节点入栈的次数 C++代码 ...
分类:其他好文   时间:2016-05-01 13:38:48    阅读次数:172
mysql locktables
SELECT r.trx_id waiting_trx_id, r.trx_mysql_thread_id waiting_thread, TIMESTAMPDIFF( SECOND, r.trx_wait_started, CURRENT_TIMESTAMP ) wait_time, r.trx_ ...
分类:数据库   时间:2016-04-30 12:52:06    阅读次数:188
VC 多线程编程
一、问题的提出 编写一个耗时的单线程程序:   新建一个基于对话框的应用程序SingleThread,在主对话框IDD_SINGLETHREAD_DIALOG添加一个按钮,ID为IDC_SLEEP_SIX_SECOND,标题为“延时6秒”,添加按钮的响应函数,代码如下: void CSingleThreadDlg::OnSleepSixSecond() { ...
分类:编程语言   时间:2016-04-29 16:02:27    阅读次数:178
1246 - Colorful Board
1246 - Colorful Board PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB You are given a rectangular board. You are asked to d ...
分类:其他好文   时间:2016-04-28 23:52:14    阅读次数:317
1226 - One Unit Machine
1226 - One Unit Machine PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB OUM is a one unit machine which processes jobs. Sin ...
分类:系统相关   时间:2016-04-27 18:52:07    阅读次数:241
319. Bulb Switche
There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every ...
分类:其他好文   时间:2016-04-26 14:03:49    阅读次数:139
C 求最大数,逆置数组 冒泡法
求第一,第二,第三大的值#include<stdio.h> intmain(){ intarr1[10]={1,3,2,5,4,7,5,6,9}; intmax=0; intsecond_max=0; intthird_max=0; for(inta=0;a<10;a++){ if(arr1[a]>max){ third_max=second_max; second_max=max; max=arr1[a]; } } prin..
分类:编程语言   时间:2016-04-25 22:53:45    阅读次数:306
Leetcode 之 Bulb Switcher - 灯泡开关
看懂题目花了很长时间: 题目是这样的: 英文:There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third r ...
分类:其他好文   时间:2016-04-22 16:27:22    阅读次数:166
20150109--面向对象+对象传值-01
回顾 mysql:函数和存储过程 -- 创建表 create table my_name(name char(2) not null)charset utf8; -- 定义全局变量 set @first = '甲乙丙丁戊己庚辛壬癸'; set @second = '子丑寅卯辰巳午未申酉戌亥'; --... ...
分类:其他好文   时间:2016-04-20 23:49:35    阅读次数:296
jQuery.merge 源码阅读
jQuery.merge(first,second) 概述 合并两个数组 返回的结果会修改第一个数组的内容——第一个数组的元素后面跟着第二个数组的元素。 合并两个数组 返回的结果会修改第一个数组的内容——第一个数组的元素后面跟着第二个数组的元素。 返回的结果会修改第一个数组的内容——第一个数组的元素 ...
分类:Web程序   时间:2016-04-19 16:52:28    阅读次数:162
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!