-----QUESTION-----Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symme...
分类:
其他好文 时间:
2014-08-17 19:47:22
阅读次数:
259
10.24 给定一个string,使用bind和check_size在一个int的vector中查找第一个大于string长度的值。#include#include#include#include#includeusing namespace std;bool check_size(vector::...
分类:
其他好文 时间:
2014-08-17 18:18:52
阅读次数:
166
告警信息 check_ins_slave_io_running(err_cnt:1)critical- slaveionotrunonins:3014,3051,3060,3079,3097,3104,3106,3107,3108,3116,3119,3123,3170,3150,3151 ...
分类:
其他好文 时间:
2014-08-16 02:15:19
阅读次数:
359
http://poj.org/problem?id=2151 Check the difficulty of problemsTime Limit:2000MSMemory Limit:65536KTotal Submissions:487...
分类:
其他好文 时间:
2014-08-15 22:30:39
阅读次数:
290
访问登记属性android.permission.ACCESS_CHECKIN_PROPERTIES ,读取或写入登记check-in数据库属性表的权限获取错略位置android.permission.ACCESS_COARSE_LOCATION,通过WiFi或移动基站的方式获取用户错略的经纬度信息...
分类:
移动开发 时间:
2014-08-15 19:13:59
阅读次数:
321
写一个程序,结果总是不对,check逻辑好几遍也没发现错误,无奈之下debug。发现一个有趣的现象abs(INT_MAX-(-1))返回值是-2147483648。于是看了下abs函数的代码实现。1 int __cdecl abs (2 int number3 )4 ...
分类:
其他好文 时间:
2014-08-15 17:47:39
阅读次数:
231
http://poj.org/problem?id=2151
有t个队伍,m道题,给出每个队伍做出每道题的概率。求出每个队伍至少做出一道题并且冠军队伍至少做出n道题的概率。
只要设出数组来,就很直观了。
dp[i][j][k]表示第i个队伍在前j道题中解出k道题的概率,s[i][j]表示第i个队伍最多解出j道题的概率。
首先初始化dp[i][0][0]和dp[i][j][0...
分类:
其他好文 时间:
2014-08-14 20:35:09
阅读次数:
193
加上引用: using System.Text.RegularExpressions; /// /// 检查字符串是否是日期格式 /// /// 2011-5-8 8:08:05 /// public static string check(string s) { if (Regex.I...
分类:
Web程序 时间:
2014-08-14 19:26:19
阅读次数:
369
[root@ipaserver~]#yuminstallipa-serverTransactionCheckError:file/usr/share/man/man3/XML::SAX::Base.3pm.gzconflictsbetweenattemptedinstallsofperl-XML-SAX-0.96-7.el6.noarchandperl-XML-SAX-Base-1.04-1.el6.rf.noarchfile/usr/share/man/man3/XML::SAX::Exception.3p..
分类:
其他好文 时间:
2014-08-14 04:05:58
阅读次数:
482
nagios-snmp插件:http://cpan.metacpan.org/authors/id/D/DT/DTOWN/Net-SNMP-v6.0.1.tar.gzhttp://nagios-snmp.cvs.sourceforge.net/viewvc/nagios-snmp/pluginscheck_snmp_load.plcheck_snmp_mem.plcheck_snmp_process.plcheck_snmp_storage.pl被监控端:$sudoapt-getinstalls..
分类:
其他好文 时间:
2014-08-14 04:05:18
阅读次数:
463