Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2...
分类:
编程语言 时间:
2014-07-12 13:13:24
阅读次数:
195
微软近期Open的职位:Enterprise ArchitectCloud, HTML5, Big Data and Mobile are technology trends driving profound architecture change within enterprises. Enter...
分类:
其他好文 时间:
2014-07-12 00:15:49
阅读次数:
176
一些在网站设计中使用漂亮的水彩效果的实例,这些网站大都使用了很炫的笔刷和完美的色彩。很值得大家借鉴。 Big CartelUI界面设计 toggle北京UI设计 Happy Cog Studios 软件界面设计 Web Designer Wallipad界面设计 Elect...
分类:
Web程序 时间:
2014-07-11 21:55:28
阅读次数:
327
【转载请注明出处: 钱国正的专栏】
问题:
在CentOS上安装apache,配置好服务器本机可以访问,但是外部局域网IP不能访问
解决方法:
1.修改配置文件/etc/httpd/conf/httpd.conf
AllowOverride None
Options None
Order allow,deny
Allow from all...
分类:
其他好文 时间:
2014-07-11 00:35:02
阅读次数:
263
说明:以下内容参考了抚琴煮酒的《构建高可用Linux服务器》第六章内容.搭建负载均衡高可用环境相对简单,主要是要理解其中原理。此文描述了三种负载均衡器的优缺点,以便在实际的生产应用中,按需求取舍。目前,在线上环境中应用较多的负载均衡器硬件有F5 BIG-IP,软件有LVS,Nginx及HAProxy...
分类:
其他好文 时间:
2014-07-10 15:57:24
阅读次数:
238
//查询账单关联订单selecto.id as id,o.order_no as orderNo,o.case_no as caseNo,o.send_time as sendTime,o.final_time as finalTime,(select ca.car_no from fm_order...
分类:
数据库 时间:
2014-07-09 17:53:55
阅读次数:
259
$(function(){ serviceHeight(); $('#seconds').hide(); inputFocus();/*开始接受订单*/$('.btn_order').click(function(){ if( !$(this).hasClass('btn_s...
分类:
Web程序 时间:
2014-07-09 17:41:51
阅读次数:
238
You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, such that the Ts d...
分类:
其他好文 时间:
2014-07-09 15:35:19
阅读次数:
176
CREATE TABLE IF NOT EXISTS `alipay_order` ( `id` int(11) unsigned NOT NULL auto_increment, `orderid` char(20) NOT NULL, `title` char(50) NOT NULL, ...
分类:
Web程序 时间:
2014-07-09 13:16:37
阅读次数:
213
模板
题意:给你一个图,1总是为根,每个边有单位价值,每个点有权重。
每条边的价值 = sum(后继节点权重)*边的单位价值。
求树的最小价值,即构成一棵树的n-1条边的最小价值。
算法:
1、因为每个边的价值都要乘以后来访问的节点的权重,而走到后来访问的点必经过这条边。
实际上总价值就是 到每个点的最短路径*这个点的权重。
2、但是这个题 数据量真的太大了,50000个点...
分类:
其他好文 时间:
2014-07-09 11:33:57
阅读次数:
273