AC MeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11719Accepted Submission(s): 5210Problem Desc...
分类:
其他好文 时间:
2014-07-23 15:01:56
阅读次数:
213
Back to Kernighan-RitchieInput:Standard InputOutput:Standard OutputYou must have heard the name ofKernighanandRitchie, the authors ofThe C Programming...
分类:
其他好文 时间:
2014-07-23 11:42:16
阅读次数:
298
The first solution I figured out is O(n^3). I thought it must be O(n^2) to get max points on a line for a given point.. but after checking several art...
分类:
其他好文 时间:
2014-07-22 22:47:15
阅读次数:
226
Problem 2156 Climb Stairs
Problem Description
Jason lives on the seventh floor. He can climb several stairs at a time, and he must reach one or more specific stairs before he arrives home becau...
分类:
其他好文 时间:
2014-07-22 14:36:28
阅读次数:
211
Reorder ListGiven 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' val...
分类:
其他好文 时间:
2014-07-22 00:16:36
阅读次数:
230
<?php $ltime=time()-86400*3; ?> {pc:get sql="select * FROM? v9_news where inputtime>$ltime order by id desc"? num="13" page="$page" return="data"} {loop $data $n $r} <li><a target="_blank" href=...
分类:
数据库 时间:
2014-07-22 00:15:35
阅读次数:
252
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:
其他好文 时间:
2014-07-22 00:13:35
阅读次数:
154
1 查询单表select * from emp;2 查询单表,并按照deptno降序和job升序排列select * from emp order by deptno desc , job asc;3 查询最高工资和最低工资select max(sal),min(sal) from emp ;4查询...
分类:
数据库 时间:
2014-07-22 00:05:34
阅读次数:
251
们先看看blockTest2,它是由 结构体impl, 结构体Desc, 构造方法__exampleBlock_block_impl_2() 组成展开后是
*isa 指向该实例对象(代码里是NSConcreteStackBlock,其实应该是NSConcreteGlobalBlock)
Flags 用于按bit位表示一些block的附加信息
reserved 保留变量
*FuncPtr 函数指针,指向具体的block实现的函数调用地址(代码里是__exampleBlock_block_func_2)...
分类:
其他好文 时间:
2014-07-21 22:12:48
阅读次数:
336
{pc:get sql="SELECT * FROM v9_news WHERE catid IN (61,62,63,64,65) order by id DESC" num="10"? return="data" } {loop $data $n $r} ?<LI><SPAN><a href="{$CATEGORYS[$r[catid]][url]}">[{$CATEGORYS...
分类:
其他好文 时间:
2014-07-21 14:08:55
阅读次数:
246