1.字符串比较字符串.ComparTo(目标字符串)"a".ComparTo("b");2.查找子串字符串.IndexOf(子串,查找其实位置) ;字符串.LastIndexOf(子串) ;最后一次出现的位置str.IndexOf("ab",0);3.插入子串字符串.Insert(插入位置,插入子串...
[leetcode]Insert Interval...
分类:
其他好文 时间:
2014-10-20 10:01:50
阅读次数:
189
1.DAO方式之数据插入 1 public function actionInsert() { 2 $re = Yii::app()->db->createCommand()->insert('user',array( 3 'u...
分类:
数据库 时间:
2014-10-19 18:34:11
阅读次数:
227
基本准备: function CArray(numElems) { this.dataStore = []; this.pos = 0; this.numElems = numElems; this.insert = insert; this.toString = toStr...
分类:
编程语言 时间:
2014-10-19 18:23:09
阅读次数:
196
每个房间用一个集合来维护,具体来说,就是给1-n的数每个数一个long long的hash值,往集合S里insert(i),就是S^=HASH[i];erase(i),也是S^=HASH[i]。用map/set维护某个集合是否已经做过实验。分块,对每个块维护一个maxv[i],代表当前该块内的答案值...
分类:
其他好文 时间:
2014-10-19 15:29:13
阅读次数:
199
1.Loop循环(成功) // the code inside the loop //插入Loop 中的代码 2.在WordPress的第一篇文章中插入Google广告 // Insert your Google AdSense code here 你同样可以改变 count值来让广...
分类:
其他好文 时间:
2014-10-19 14:17:19
阅读次数:
205
服务端 0) { exit(json_encode(1)); //返回1表示注册失败 } else { $addsql = "insert into `member` (username,password,email) values ('$u...
功能: 1、 允许/限制对表的修改 2、 自动生成派生列,比如自增字段 3、 强制数据一致性 4、 提供审计和日志记录 5、 防止无效的事务处理 6、 启用复杂的业务逻辑 开始 create trigger biufer_employees_department_id before insert o...
分类:
数据库 时间:
2014-10-19 11:35:34
阅读次数:
321
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2014-10-19 06:53:24
阅读次数:
142
Implement insert and delete in a tri-nary tree. A tri-nary tree is much like a binary tree but with three child nodes for each parent instead of two -...
分类:
其他好文 时间:
2014-10-19 02:40:16
阅读次数:
236