上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 109 下一页

2015年8月23日

1076. Forwards on Weibo (30) - 记录层的BFS改进

摘要: 题目如下: Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence... 阅读全文

posted @ 2015-08-23 22:42 张大大123 阅读(665) 评论(0) 推荐(0) 编辑

2015年8月22日

1098. Insertion or Heap Sort (25)

摘要: 题目如下: According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each itera... 阅读全文

posted @ 2015-08-22 19:28 张大大123 阅读(121) 评论(0) 推荐(0) 编辑

2015年8月20日

1077. Kuchiguse (20)

摘要: 题目如下: The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflecti... 阅读全文

posted @ 2015-08-20 18:10 张大大123 阅读(240) 评论(0) 推荐(0) 编辑

2015年8月19日

(一二四)tableView的多组数据展示和手动排序

摘要: 最近在写一个轻量级的网络游戏,遇到了技能优先顺序手动排序的需求,我就想到了iOS自带的tableView编辑功能,对其进行了初步探索,最后做出的效果如下图所示: 点击左边可以删除,拖住右边可以手动排序,要实现这个功能,分以下步骤。 ①用plist存储这些数据,可以看到数据分两个职业,每个职业4... 阅读全文

posted @ 2015-08-19 09:31 张大大123 阅读(263) 评论(0) 推荐(0) 编辑

2015年8月18日

1096. Consecutive Factors (20)

摘要: 题目如下: Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3*5*6*7, wh... 阅读全文

posted @ 2015-08-18 19:15 张大大123 阅读(178) 评论(0) 推荐(0) 编辑

2015年8月17日

(一二三)基于GCD的dispatch_once实现单例设计

摘要: 要实现单例,关键是要保证类的alloc和init只被调用一次,并且被自身强引用防止释放。 近日读唐巧先生的《iOS开发进阶》,受益匪浅,通过GCD实现单例就是收获之一,下面把这个方法与大家分享。 在GCD中,有一个函数dispatch_once,可以实现代码段的一次性执行,和static修饰的... 阅读全文

posted @ 2015-08-17 21:02 张大大123 阅读(152) 评论(0) 推荐(0) 编辑

1084. Broken Keyboard (20)

摘要: 题目如下: On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not a... 阅读全文

posted @ 2015-08-17 19:14 张大大123 阅读(134) 评论(0) 推荐(0) 编辑

1081. Rational Sum (20) -最大公约数

摘要: 题目如下: Given N rational numbers in the form "numerator/denominator", you are supposed to calculate their sum. Input Specification: Each input fi... 阅读全文

posted @ 2015-08-17 19:10 张大大123 阅读(188) 评论(0) 推荐(0) 编辑

2015年8月15日

TCP连接建立系列 — 客户端接收SYNACK和发送ACK

摘要: 主要内容:客户端接收SYNACK、发送ACK,完成连接的建立。 内核版本:3.15.2 我的博客:http://blog.csdn.net/zhangskd 接收入口 tcp_v4_rcv |--> tcp_v4_do_rcv |-> tcp_rcv... 阅读全文

posted @ 2015-08-15 22:47 张大大123 阅读(470) 评论(0) 推荐(0) 编辑

TCP连接建立系列 — 客户端的端口选取和重用

摘要: 主要内容:connect()时的端口选取和端口重用。 内核版本:3.15.2 我的博客:http://blog.csdn.net/zhangskd 端口选取 connect()时本地端口是如何选取的呢? 如果用户已经绑定了端口,就使用绑定的端口。 如果用户没有绑定端口,则让系统自动选取... 阅读全文

posted @ 2015-08-15 22:42 张大大123 阅读(774) 评论(0) 推荐(0) 编辑

上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 109 下一页

导航