码迷,mamicode.com
首页 >  
搜索关键字:right    ( 9126个结果
Rotate List leetcode java
题目:Given a list, rotate the list to the right by k places, where k is non-negative.For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2-....
分类:编程语言   时间:2014-07-24 09:53:16    阅读次数:219
如何让secureCRT显示Linux的颜色
style="padding-bottom: 0px; line-height: 1.5; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: 宋体, Arial; font-size: 14px; padding-top...
分类:系统相关   时间:2014-07-23 20:34:05    阅读次数:288
(40)JS运动之右下角悬浮框
#div1{ width:100px; height:150px; background:red; position:absolute; right:0; bottom:0; }  window.onscroll=function (){ var oDiv=document.getElementById('div1'); var s...
分类:Web程序   时间:2014-07-23 13:33:26    阅读次数:216
(41)JS运动之右侧中间悬浮框(对联悬浮框)
#div1{ width:100px; height:150px; background:red; position:absolute; right:0; bottom:0; }  window.onscroll=function (){ var oDiv=document.getElementById('div1'); var s...
分类:Web程序   时间:2014-07-23 13:33:17    阅读次数:286
LeetCode "Construct Binary Tree from Inorder and Postorder Traversal"
Another textbook problem. We take back of postorder array as the current root, and then we can split the inorder array: 1st half for current right chi...
分类:其他好文   时间:2014-07-23 12:01:56    阅读次数:210
uva 699
我们可以把它直接考虑是个一维数组,对每个点向两边扩展,记录数据在数组中, 就是DFS #include int a[81],left,right; void sort(int num,int pos) {int x,y;  if (num!=-1)  {if (posright) right=pos;   a[pos]+=num;   s...
分类:其他好文   时间:2014-07-22 23:53:17    阅读次数:266
MySQL的left on 【zt】
MySQL的lefton【zt】(2008-11-03 17:27:30)转载▼标签:it分类:学习笔记MySQL多表连接查询Left Join,Right Joinphp开源嘛在讲MySQL的Join语法前还是先回顾一下联结的语法,呵呵,其实连我自己都忘得差不多了,那就大家一起温习吧(如果内容有错...
分类:数据库   时间:2014-07-22 22:44:35    阅读次数:274
【设计模式】工厂方法模式
简单工厂模式的最大优点在于工厂类中包含了必要的逻辑判断,根据客户端的选择条件动态实例化相关的类,对于客户端来说,去除了与具体产品的依赖。例如在简单工厂模式中出现的工厂函数: Operation* FactoryFunction(double left, double right, char op) { switch (op) { case '+': ret...
分类:其他好文   时间:2014-07-22 22:38:56    阅读次数:283
二分法查找
题设:设数组a[0],…,a[n-1]中存放着n>=1个已由小到大排序的不同整数,判断整数x是否在数组a中。若是,返回j,使得x=a[j];否则,返回-1。题解:利用数组中的整数已排序的性质,可以设计高效的求解算法。令left和right分别表示当前需要查找的数组部分的起点与终点下标。初始时,lef...
分类:其他好文   时间:2014-07-22 22:37:13    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!