码迷,mamicode.com
首页 > 其他好文
[leetcode]Count and Say
Count and SayThe count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is r...
分类:其他好文   时间:2014-07-19 20:35:34    阅读次数:276
不同字的练习
#import "FisrtViewController.h"#import "ViewController.h"@interface FisrtViewController ()@end@implementation FisrtViewController- (instancetype)initW...
分类:其他好文   时间:2014-07-19 20:36:37    阅读次数:337
LA 4490
Bubu's bookshelf is in a mess! Help him!There arenbooks on his bookshelf. We define the mess value to be the number of segments ofconsecutive equal-he...
分类:其他好文   时间:2014-07-19 20:36:17    阅读次数:248
LogEntry
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WindowsFormsApplication3.Model{ public class LogEntry ...
分类:其他好文   时间:2014-07-19 20:37:00    阅读次数:177
ZigBee
ZigBee is a specification for a suite of high level communication protocols used to create personal area networks built from small, low-power digital ...
分类:其他好文   时间:2014-07-19 20:37:21    阅读次数:212
Node Node
http://www.nodejs.org/http://outofmemory.cn/code-snippet/1403/node-javascript-classic-introduction-HTTP-service-qi-codehttp://outofmemory.cn/code-snip...
分类:其他好文   时间:2014-07-19 20:39:22    阅读次数:217
String,你到底创建了几个对象????
Java代码 Stringstr=newString("aaa");这行代码究竟创建了几个String对象呢?答案是2个,而不是3个。由于 new String("aaa")相当于"aaa"与一个就是创建出来的放在堆时原实例对象,而另一个就是放在常量池中的 "aaa" 对象,当然这里的str本身只是...
分类:其他好文   时间:2014-07-19 21:00:30    阅读次数:221
杭电 acm 2053 ( Switch Game )
这题思路:一开始有n盏灯,且全部为关闭状态,都记为 0 就是 The initial condition : 0 0 0 0 0 …然后之后进行i操作就是对这些灯以是否能被i整除,进行改变状态,如将 0 改为 1 或 将 1 改为 0正如提醒里的After the first operation :...
分类:其他好文   时间:2014-07-19 21:00:51    阅读次数:198
Swift function how to return nil
 这两天在学习Stanford出品的iOS7的课程,这个课程去年也看过,但是看到第3课就不行了,满篇的OC,把人都搞晕了。这段时间因为要写个iOS的App,正好赶上了Swift问世,所以趁着这股劲继续学习iOS的开发,把网上的一些视频关于Swift的都看过和做过了,然后选择看Stanford出品....
分类:其他好文   时间:2014-07-19 21:02:31    阅读次数:209
喵喵的IDE
喵喵的IDETime Limit:20000/10000MS (Java/Others)Memory Limit:512000/256000KB (Java/Others)SubmitStatisticNext ProblemProblem Description喵喵有一个神奇的IDE,这个IDE自...
分类:其他好文   时间:2014-07-19 21:02:11    阅读次数:210
扒皮下京东首页楼层图标的动画效果实现方式
京东首页的楼层图标默认是灰色的,但拉动滚动条,让该图标从下方挪动到屏幕正中的时候,该图标会显示出从上到下由灰变绿的动画效果,如下图这种效果很有Lazyload的范,也是挺吸引眼球的交互方式,下面用JQ来仿造下这种效果的实现方式,其实挺简单。首先我是做了2个gif分别作为图标的默认状态和动画状态(注意...
分类:其他好文   时间:2014-07-19 21:03:14    阅读次数:280
使用 NGUI 实现头顶文字及血条
以下是 NGUI HUD Text 实现的:基本原理:1. 在角色头顶绑一个点 Pivot,用于对齐2. 因为界面总是覆盖在人物头顶信息的上面,所以将 UIRoot 分为2个 Panel:1) GUI,用于画界面,Depth 较大 2) HUDPanel,用于画人物头顶文字及血条,Depth 较小(...
分类:其他好文   时间:2014-07-19 21:03:29    阅读次数:234
poj1201差分约束
#include#include#include#include#include#include#include#include#include#include#include#include using namespace std;const int maxn=50005;int n;int he...
分类:其他好文   时间:2014-07-19 21:04:10    阅读次数:175
hdu 1312 Red and Black
集训第一场 B题dfs简单题 做完这题就撤,回来再继续做吧= = 水手加油~ 1 #include 2 #include 3 4 int Count; 5 int to[4][2] = {{-1,0},{1,0},{0,1},{0,-1}}; 6 int row,col; 7 char room[....
分类:其他好文   时间:2014-07-19 21:04:34    阅读次数:172
大数据架构师基础:hadoop家族,Cloudera产品系列等各种技术
大数据我们都知道hadoop,可是还会各种各样的技术进入我们的视野:Spark,Storm,impala,让我们都反映不过来。为了能够更好的架构大数据项目,这里整理一下,供技术人员,项目经理,架构师选择合适的技术,了解大数据各种技术之间的关系,选择合适的语言。 我们可以带着下面问题来阅读本文章: 1...
分类:其他好文   时间:2014-07-19 21:05:50    阅读次数:236
Memcached理解笔记3---Memcached使用总结
为了将N个前端数据同步,通过Memcached完成数据打通,但带来了一些新问题:使用iBatis整合了Memcached,iBatis针对每台server生成了唯一标识,导致同一份数据sql会产生不同的key,造成重复缓存。——通过重写iBatis部分原码,终止了唯一标识的生成,同一个SQL产生同一...
分类:其他好文   时间:2014-07-19 21:06:50    阅读次数:207
【leetcode】Candy
There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requi...
分类:其他好文   时间:2014-07-19 21:07:18    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!