码迷,mamicode.com
首页 >  
搜索关键字:think    ( 1909个结果
thinkphp 分页
效果图:一:分页方法/** * TODO 基础分页的相同代码封装,使前台的代码更少 * @param $m 模型,引用传递 * @param $where 查询条件 * @param int $pagesize 每页查询条数 * @return \Think\Page */function getp...
分类:Web程序   时间:2015-08-11 00:02:42    阅读次数:395
Leetcode: sliding window maximum
August 7, 2015Spent 20-30 minutes to think about solution first, and then, read the blogs, and understand the best solution, and then try different so...
分类:Windows程序   时间:2015-08-10 13:34:53    阅读次数:216
HackerRank - "Candles Counting" - DIFFICULT
It should be categorized as 'Advanced' I think ... Anyway, Fenwick tree is the key.Editorial:https://www.hackerrank.com/challenges/candles-2/editorial...
分类:其他好文   时间:2015-08-10 13:34:14    阅读次数:120
Thinkphp下实现分页
$count=M('wish')->count(); $page = new \Think\Page($count,5);//传入总页数和每页要得到的记录 $this->wish = M('wish')->order('time')->limi...
分类:Web程序   时间:2015-08-09 22:04:44    阅读次数:109
ACM 入门计划
acm本文由swellspirit贡献ACM? I can accept failure. but I can't accept not trying. Life is often compared to a marathon, but I think it is more like being a...
分类:其他好文   时间:2015-08-09 15:31:13    阅读次数:115
POJ-1005: I Think I Need a Houseboat 详解1: 直接计算
> 分析 >> 本题主要在于理解题意 >> 半圆的范围在多少年内会包含给的坐标> 注意 >> 算式一口气会稍微快一点> 附代码 1 #include "stdio.h" 2 3 #define PI 3.14f 4 5 int main(void) 6 { 7 int n = 0 ; 8...
分类:其他好文   时间:2015-08-09 12:06:22    阅读次数:111
Use Uncertainty As a Driver
?Use Uncertainty As a DriverKevlin HenneyConFRonTEd WiTH TWo opTionS, most people think that the most impor- tant thing to do is to make a choice between them. In design (software or otherwise), it is...
分类:其他好文   时间:2015-08-09 10:52:29    阅读次数:120
Power Strings POJ 2406【KMP Next的应用】
Description Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication, exponenti...
分类:其他好文   时间:2015-08-07 20:04:56    阅读次数:132
git 从其他分支检出指定的commit到当前分支
http://think-like-a-git.net/sections/rebase-from-the-ground-up/cherry-picking-explained.htmlGit's own online help has a great, if characteristically t...
分类:其他好文   时间:2015-08-06 10:41:43    阅读次数:145
POJ 1005 I Think I Need a Houseboat 水
?? I Think I Need a Houseboat Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 92807   Accepted: 40360 Description Fred Mapper is considering purchasing some l...
分类:其他好文   时间:2015-08-05 20:27:05    阅读次数:104
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!