• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
ArgenBarbie
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 29 下一页
2016年8月22日
164. Maximum Gap *HARD* -- 无序数组找出排序后连续元素的最大间隔
摘要: Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Try to solve it in linear time/space. Return 阅读全文
posted @ 2016-08-22 18:07 ArgenBarbie 阅读(299) 评论(0) 推荐(0)
viewDidLoad && loadView
摘要: viewDidLoad 方法在controller加载了相关的views后被调用,而不论这些views存储在nib文件里还是在loadView函数中生成。 loadView 方法在控制器的 view 为 nil 的时候被调用。 此方法用于以编程的方式创建 view 的时候用到。loadView 是使 阅读全文
posted @ 2016-08-22 14:43 ArgenBarbie 阅读(209) 评论(0) 推荐(0)
给文本标签UILabel添加长按复制功能
摘要: http://www.111cn.net/sj/iOS/104236.htm http://blog.csdn.net/lrenjun/article/details/12582927 自定义一个可复制的标签类,使其能够响应Touch事件并显示复制菜单。 阅读全文
posted @ 2016-08-22 13:42 ArgenBarbie 阅读(1202) 评论(0) 推荐(0)
函数与方法(方法前 + - 号)
摘要: 方法:方法是Objective-C独有的一种结构,只能在Objective-C中声明、定义和使用,C语言不能声明、定义和使用。 1、类方法以+号开头,对象方法以-号开头 + (void) init; // 类方法 - (void) show; // 对象方法 2、在@interface和@end之间 阅读全文
posted @ 2016-08-22 09:21 ArgenBarbie 阅读(309) 评论(0) 推荐(0)
2016年8月21日
1362 : 修补木桶 -- 最长的最短边
摘要: 描述 一只木桶能盛多少水,并不取决于桶壁上最高的那块木板,而恰恰取决于桶壁上最短的那块。 已知一个木桶的桶壁由N块木板组成,第i块木板的长度为Ai。 现在小Hi有一个快捷修补工具,每次可以使用修补工具将连续的不超过L块木板提高至任意高度。 已知修补工具一共可以使用M次(M*L<N),如何修补才能使最 阅读全文
posted @ 2016-08-21 20:29 ArgenBarbie 阅读(453) 评论(0) 推荐(0)
2016年8月20日
149. Max Points on a Line *HARD* 求点集中在一条直线上的最多点数
摘要: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 阅读全文
posted @ 2016-08-20 21:50 ArgenBarbie 阅读(163) 评论(0) 推荐(0)
148. Sort List -- 时间复杂度O(n log n)
摘要: Sort a linked list in O(n log n) time using constant space complexity. 归并排序 阅读全文
posted @ 2016-08-20 21:15 ArgenBarbie 阅读(315) 评论(0) 推荐(0)
133. Clone Graph 138. Copy List with Random Pointer 拷贝图和链表
摘要: 133. Clone Graph Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: 阅读全文
posted @ 2016-08-20 09:49 ArgenBarbie 阅读(185) 评论(0) 推荐(0)
2016年8月16日
debug && release
摘要: http://www.cnblogs.com/awpatp/archive/2009/11/05/1597038.html Debug 通常称为调试版本,它包含调试信息,并且不作任何优化,便于程序员调试程序。 Release 称为发布版本,它往往是进行了各种优化,使得程序在代码大小和运行速度上都是最 阅读全文
posted @ 2016-08-16 10:51 ArgenBarbie 阅读(148) 评论(0) 推荐(0)
静态库 && 动态库
摘要: http://weihe6666.iteye.com/blog/1100065 http://www.cnblogs.com/skynet/p/3372855.html 静态库: 在链接阶段,将汇编生成的目标文件.o与引用到的库一起链接打包到可执行文件中。 静态库对函数库的链接是放在编译时期完成的。 阅读全文
posted @ 2016-08-16 10:28 ArgenBarbie 阅读(134) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 29 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3