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
先上一段代码: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某列表中把这一列中全部的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
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
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
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
// 全排列问题.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
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
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
题目: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