码迷,mamicode.com
首页 > 其他好文
258. Add Digits
题目:Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3...
分类:其他好文   时间:2015-12-03 07:11:38    阅读次数:145
[lintcode easy]Compare Strings
Compare StringsCompare two strings A and B, determine whether A contains all of the characters in B.The characters in string A and B are all Upper Cas...
分类:其他好文   时间:2015-12-03 07:11:20    阅读次数:120
255. Verify Preorder Sequence in Binary Search Tree
题目:Given an array of numbers, verify whether it is the correct preorder traversal sequence of a binary search tree.You may assume each number in the s...
分类:其他好文   时间:2015-12-03 07:13:59    阅读次数:138
TCAM 与CAM
CAM是Content Addressable Memory的缩写,即“内容寻址存储器”的意思,它是在传统的存储技术的基础上实现的联想记忆存储器,关于CAM的基本操作有三种: 1).写操作:输入地址和数据,将数据写到指定的地址上,写入速度与RAM相同; 2).读操作:输入地址,返回该地址上的数据,读...
分类:其他好文   时间:2015-12-03 07:12:06    阅读次数:189
256. Paint House
题目:There are a row ofnhouses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certa...
分类:其他好文   时间:2015-12-03 07:12:06    阅读次数:127
[lintcode easy]Insert Node in a Binary Search Tree
Insert Node in a Binary Search TreeExampleGiven binary search tree as follow, after Insert node 6, the tree should be: 2 2 / \ ...
分类:其他好文   时间:2015-12-03 07:10:16    阅读次数:139
[LeetCode]Remove Element
public class Solution { public int removeElement(int[] nums, int val) { if (nums.length == 0) { return 0; } int lef...
分类:其他好文   时间:2015-12-03 07:10:31    阅读次数:130
[IT学习]PowerBi 入门
从哪里开始呢?注册一个账号,从PowerBi的help开始就行了。Get Started会带领你从get data讲起,建立dataset,建立report,一直到dashboard创建。下面这个链接,讲的是如何设计dashboard。主要是如何设计一个优秀的dashboardhttps://pow...
分类:其他好文   时间:2015-12-03 07:12:24    阅读次数:108
[LeetCode]ZigZag Conversion
public class Solution { public String convert(String s, int numRows) { if (numRows == 1) { return s; } int flg = 0;...
分类:其他好文   时间:2015-12-03 07:11:42    阅读次数:128
1-6-Xmanager远程工具的使用
Xmanager远程工具的使用
分类:其他好文   时间:2015-12-03 02:27:11    阅读次数:210
Ceph中国社区第二次沙龙活动
Ceph中国社区第二次沙龙活动开始报名了,详情:http://zhangdh.com/archives/75
分类:其他好文   时间:2015-12-03 02:28:31    阅读次数:244
#运算符和##预算符
“#”也是预处理?可以这样认为。那么怎么用它呢?看看下面的例子。#defineSQR(X)printf("thesquareofxis%d.\n",((x)*(x))如果这样使用宏:SQR(8);的结果呢?thesquareofxis64.注意到,引号中的字符x被当作普通文本处理了,而不是当作一个可以被替换的语言符号。假如你确实希望..
分类:其他好文   时间:2015-12-03 02:27:41    阅读次数:388
小青与IT不得不谈的羞耻事件
转眼间,已经大四了,大一大二迷茫了两年,大三大四才真的爱上了IT这条路
分类:其他好文   时间:2015-12-03 02:24:41    阅读次数:114
DELL RAID
磁盘管理raid01、两块硬盘2、数据吞吐大。3、不要校验。4、没有冗错能力5、DataStripping6、成本最低7、数据安全不高的情况下使用。8、至少1块raid11、检验丰富2、利用很低3、成本最高4、对每一个数据进行备份。5、一半存储一半备份6、至少2块raid0+11、综合1和0的所有优点raid..
分类:其他好文   时间:2015-12-03 02:26:45    阅读次数:183
opencar模板 opencartchina
LEXUSEXISTCOMBOOPENCART2.X自适应主题模板ABC-0553-03FEATURESCompatiblewithOpencart1.5.4,Opencart1.5.5,Opencart1.5.6,Opencart1.5.6.1,Opencart1.6.5.4SupportWideScreen1170px,980pxBuilt-inPavoFrameworkVersion3.0andBootstrap3NoHackingCoreOpencartCodesHTML5andCSS3..
分类:其他好文   时间:2015-12-03 02:24:17    阅读次数:575
nginx日志输出自定义header头字段
这段时间做了一个web的项目,要求在日志中输出自定义的httpheader字段token和have-deleted的值,nginx版本为1.1.19,以下是具体的log配置:log_formatmain‘$remote_addr-$remote_user[$time_local]$http_token $http_have_deleted"$request"‘ ‘$status$request_time$body_bytes..
分类:其他好文   时间:2015-12-03 02:26:35    阅读次数:1256
Date、String、Calendar类型之间的转化
1.Calendar转化String//获取当前时间的具体情况,如年,月,日,week,date,分,秒等Calendarcalendat=Calendar.getInstance();SimpleDateFormatsdf=newSimpleDateFormat("yyyy-MM-dd");StringdateStr=sdf.format(calendar.getTime());2.String转化CalendarStringstr="2010-5-27";Sim..
分类:其他好文   时间:2015-12-03 02:23:55    阅读次数:164
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!