码迷,mamicode.com
首页 > 2015年08月10日 > 全部分享
QQ好友列表很炫?其实很简单!
相信地球人都用QQ的,我们每天都会打开QQ,但是你去注意到他是怎么实现的吗? 话不多说先上图: 该数据都是用plist文件存储 接下来带你看下plist文件分析下数据结构图一: 每一组都是一个组模型,一组相当于一个好友分组。图二 每组里面都有一个friends数组存放该组的好友数@interface JFFriend : NSObject /** * 头像 */ @prope...
分类:其他好文   时间:2015-08-10 00:25:10    阅读次数:125
Codeforces Round #105 (Div. 2) (ABCDE题解)
Codeforces Round #105 (Div. 2) (ABCDE题解)...
分类:其他好文   时间:2015-08-10 00:26:56    阅读次数:282
JS回车提交表单
JavaScript实现方法document.onkeydown = function(e) { if (!e) e = window.event;//火狐中是 window.event if ((e.keyCode || e.which) == 13) { document.getElementById("loginButtonId").click(...
分类:Web程序   时间:2015-08-10 00:25:17    阅读次数:151
Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:其他好文   时间:2015-08-10 00:24:55    阅读次数:93
Quick-Select 1亿个数快速求第K小的数 分治法
Quick-Select 1亿个数快速求第K小的数 分治法...
分类:其他好文   时间:2015-08-10 00:25:56    阅读次数:201
mysql 经典sql收集
mysql sql...
分类:数据库   时间:2015-08-10 00:26:24    阅读次数:151
Codeforces 148D Bag of mice (概率dp)
Codeforces 148D Bag of mice (概率dp)...
分类:其他好文   时间:2015-08-10 00:26:23    阅读次数:107
Hive集成Mysql作为元数据时,提示错误:Specified key was too long; max key length is 767 bytes
在进行Hive集成Mysql作为元数据过程中,做完所有安装配置工作后,进入到hive模式,执行show databases;执行正常,接着执行show tables;时却报错。 关键错误信息如下: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key leng...
分类:数据库   时间:2015-08-10 00:23:51    阅读次数:349
Linux系统下目录文件配置
刚刚接触Linux,对于Linux系统下的目录配置进行了一些研究,为了避免以后误操作这些目录,建议大家还是记忆一下相关的配置!总结Linux 根目录主要配置 目录 文件配置内容 /bin 单用户维护模式下还能被操作的命令 /boot 开机会使用到的文件,包括Linux内核文件以及开机菜单与开机所需配置文件 /dev 设备以及设备接口文件,访问该目录下文件相当于访问某设备...
分类:系统相关   时间:2015-08-10 00:25:31    阅读次数:164
_DataStructure_C_Impl:二叉树的二叉链表存储结构
// _DataStructure_C_Impl: #include #include #define MaxSize 100 typedef char DataType; typedef struct Node{ //二叉链表存储结构类型定义 DataType data; //数据域 struct Node *lchild; //指向左孩子结点 struct Node *rchild...
分类:其他好文   时间:2015-08-10 00:23:02    阅读次数:116
LA 5092 && hdu 3723 Delta Wave (卡特兰数)
题目:http://acm.hdu.edu.cn/showproblem.php?pid=3723 and http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=20568 题意:有种折线每向右延伸一个单位长度,高度要么不变,要么加1,要么减1。而且任何时刻高度不能低于0。求这种折线最终高度为0的情况总数。 分析:由于任何时刻斜...
分类:其他好文   时间:2015-08-10 00:24:09    阅读次数:217
如何通过Android Studio 或者ADT 使用VS的安卓模拟器
**Using the Visual Studio Emulator for Android from Android Studio or Eclipse with ADT**如何通过Android Studio 或者ADT 使用VS的安卓模拟器原文地址:http://blogs.msdn.com/b/visualstudioalm/archive/2015/07/20/you-can-now-ac...
分类:移动开发   时间:2015-08-10 00:23:41    阅读次数:172
Codeforces 148E Porcelain (预处理+多重背包)
Codeforces 148E Porcelain (预处理+多重背包)...
分类:其他好文   时间:2015-08-10 00:24:48    阅读次数:129
_DataStructure_C_Impl:线索二叉树
#include #include #define MaxSize 100 /*线索二叉树类型定义*/ typedef char DataType; typedef enum {Link,Thread}PointerTag;//Link=0表示指向孩子节点,Thread=1表示指向前驱节点或后继节点 typedef struct Node{ DataType data; struct Node...
分类:其他好文   时间:2015-08-10 00:23:31    阅读次数:103
基数排序(LSD)
示例代码: #include #include using namespace std; //基数排序(LSD)从最低位到最高位进行如此的分配收集 void print(int a[], int n) { for(int t=0; t<n; ++t) { if(t+1<n) { printf("%d ", a[t]); } else { printf("%d\n"...
分类:编程语言   时间:2015-08-10 00:23:20    阅读次数:183
muduo::TcpConnection分析
muduo::TcpConnection分析...
分类:其他好文   时间:2015-08-10 00:22:40    阅读次数:175
SSH登录报错REMOTE HOST IDENTIFICATION HAS CHANGED!
ssh登录远程主机报错:[XX@XX ~]$ ssh monitor@xxx.xxx.xxx.xxx @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
分类:其他好文   时间:2015-08-10 00:24:48    阅读次数:132
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!