码迷,mamicode.com
首页 >  
搜索关键字:swap nodes in pairs    ( 8848个结果
leetcode dfs Minimum Depth of Binary Tree
Minimum Depth of Binary Tree  Total Accepted: 25609 Total Submissions: 86491My Submissions Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the ...
分类:其他好文   时间:2014-10-11 17:41:25    阅读次数:151
(原创) cocos2d-x 3.0+ lua 学习和工作(4) : 公共函数(3): 深度克隆clone()
先上一段代码:local tbl = { ["a"] = 1, ["b"] = 2 }local cpy = tblfor k, v in pairs( tbl ) do print( "tab: " .. k .. ":".. v ) -- 打印tbl里的元素值endfor k, v i...
分类:其他好文   时间:2014-10-10 16:03:40    阅读次数:176
Oracle replace函数使用
需求是要修改Oracle某列表中把这一列中全部的100换成200;update b_nodes a set a.childs=replace((select childs from b_nodes b where b.nodeid=a.nodeid),'100','200') where a.chi...
分类:数据库   时间:2014-10-10 13:14:34    阅读次数:190
leetcode--Add Two Numbers
Problem: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...
分类:其他好文   时间:2014-10-10 01:32:53    阅读次数:213
LeetCode-Reverse Nodes in k-Group
Reverse Nodes in k-GroupGiven a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a...
分类:其他好文   时间:2014-10-10 00:17:43    阅读次数:355
第13题 Add Two Numbers
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...
分类:其他好文   时间:2014-10-09 17:15:15    阅读次数:218
字符串和数字的全排列问题、前i位被i整除问题
// 全排列问题.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include using namespace std; template void swap(T *str1,T *str2) { T temp; temp=*str1; *str1=*str2; *str2=temp; } void permStr(char *str,...
分类:其他好文   时间:2014-10-09 16:32:48    阅读次数:187
ZOJ 1698 (最大流入门)
Power NetworkTime Limit:5000MS    Memory Limit:32768KB    64bit IO Format:%lld & %llu SubmitStatusPracticeZOJ 1734 Appoint description: Description A power network consists of nodes (power...
分类:其他好文   时间:2014-10-09 01:32:57    阅读次数:210
LINUX kvm 性能瓶颈分析
IO负载应用场景wmsmysqldb从库,只做同步的功能每天订单量平均在8000单虚拟机配置cpu:1核超线程(宿主机四核超线程)内存:2G硬盘:300G(LVM独立分出的一块SATA硬盘)虚拟机状况内存:可用为11.23%swap:可用为2.74%cpuload:平均0.34最高:0.85cpujumps:contextswitch:128i..
分类:系统相关   时间:2014-10-09 00:39:57    阅读次数:349
LeetCode-Swap Nodes in Pairs
题目:Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your al...
分类:其他好文   时间:2014-10-09 00:31:07    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!