码迷,mamicode.com
首页 >  
搜索关键字:values    ( 8569个结果
【LeetCode】Reorder List
Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For example, Given {1,2,3,4}, reorder it to ...
分类:其他好文   时间:2014-08-30 00:06:58    阅读次数:359
LeetCode 112 Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below binary tree and sum ...
分类:其他好文   时间:2014-08-29 22:42:32    阅读次数:328
1. 自定义视图属性
res/values/attrs.xml 自定义属性值1 2 3 4 5 6 7 自定义控件 ---- 长方形 1 import android.content.Context; 2 import android.content.res.TypedArray...
分类:其他好文   时间:2014-08-29 18:09:48    阅读次数:276
PHP xml_parse_into_struct 函数详细解析
函数原型:int xml_parse_into_struct ( resource $parser , string $data , array &$values [, array &$index ] ) 参数说明:@param-->$parser XML解析器,由xml_parser_create()生成一个XML资源句柄。     @param-->$data  带解析的X...
分类:Web程序   时间:2014-08-29 14:46:07    阅读次数:210
关于初学SQL语句
回忆下昨天接触的SQL语句,就简单说说常用的一些:插入INSERT INTO 表名 [(字段名1,字段名2,…字段名n)] VALUES(‘值1’,‘值2’,…,’值n’); 更新 UPDATE 表名 SET 字段名=表达式 [,…][WHERE 条件] [ORDER BY 字段][LIMIT 行数] 删除 DELETE FROM 表名 [WHERE 条件][ORDER BY 字段][LI...
分类:其他好文   时间:2014-08-29 11:04:27    阅读次数:186
MySQL不支持子查询优化一例
一创建表createtablett1(idintprimarykey,c1INT);createtablett2(idintprimarykey,c2INT);insertintott1values(1,1),(2,2),(3,3),(4,4);insertintott2values(1,2),(2,2);二执行计划与问题mysql>explainEXTENDEDSELECTtt1.c1,(SELECTtt2.c2FROMtt2WHEREc2=10)FROMtt1,tt2;+--..
分类:数据库   时间:2014-08-29 02:59:17    阅读次数:183
Android -- 使用主题配置文件,去掉程序启动界面的短暂黑屏
关于黑屏 默认的情况下,程序启动时,会有一个黑屏的时期,原因是,首个activity会加载一些数据,比如初始化列表数据等.去除步骤 1./res/values/styles.xml 在 Theme 中,添加一个 android:windowBackgrounds 属性,设置需要的图片2.在 Andr...
分类:移动开发   时间:2014-08-29 00:00:46    阅读次数:325
Android应用程序架构之res
res/drawable 专门存放png、jpg等图标文件。在代码中使用getResources().getDrawable(resourceId)获取该目录下的资源。res/layout 专门存放xml界面文件,xml界面文件和HTML文件一样,主要用于显示用户操作界面。res/values 专门...
分类:移动开发   时间:2014-08-28 21:11:56    阅读次数:230
css3变形讲解
Transform变形:可以实现文字或者图片旋转、缩放、倾斜和移动,并且该元素下的所有子元素都随着父元素一样。既然接触到transform,我们就可以做好多3d的效果啦旋转:transform:rotate(角度deg)deg是css3的“Values and Units”模块中定义的一个角度单位....
分类:Web程序   时间:2014-08-28 17:51:55    阅读次数:237
LeetCode Reorder List
Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For exam...
分类:其他好文   时间:2014-08-28 17:47:15    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!