码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果
【Leetcode】Pascal's Triangle II
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. Note: Could you optimize your algorithm to use only O(k) extra space? 思路:最简单的方法就是按...
分类:其他好文   时间:2014-06-18 12:40:54    阅读次数:265
4Sum
题目 Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note: ...
分类:其他好文   时间:2014-06-18 12:17:57    阅读次数:179
performSelectorOnMainThread
[self performSelectorOnMainThread:@selector(loadData) withObject:nil waitUntilDone:NO];performSelectorOnMainThread的作用就如其名,是在主线程执行某个selector, 所有的UIKit里...
分类:其他好文   时间:2014-06-18 09:14:44    阅读次数:330
ios图片拉伸
button.png,尺寸为:24x60现在我们把它用作为按钮背景,按钮尺寸是150x50:// 得到view的尺寸CGSize viewSize = self.view.bounds.size;// 初始化按钮UIButton *button = [[UIButton alloc] init];/...
分类:移动开发   时间:2014-06-17 23:34:41    阅读次数:337
LeetCode:Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold additional ele...
分类:其他好文   时间:2014-06-17 23:05:13    阅读次数:246
3Sum
题目 Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: Elements in a tr...
分类:其他好文   时间:2014-06-17 22:04:49    阅读次数:292
各种Flashback
ocp 053648.Note the following statements that use flashback technology:1. FLASHBACK TABLE TO SCN ;2. SELECT * FROM AS OF SCN 123456;3.FLASHBACKTABLE.....
分类:其他好文   时间:2014-06-17 16:01:01    阅读次数:220
[数据结构与算法分析(Mark Allen Weiss)]不相交集 @ Python
最简单的不相交集的实现,来自MAW的《数据结构与算法分析》。代码:class DisjSet: def __init__(self, NumSets): self.S = [0 for i in range(NumSets+1)] def SetUnion(self, S,...
分类:编程语言   时间:2014-06-17 15:17:56    阅读次数:265
[数据结构与算法分析(Mark Allen Weiss)]二叉树的插入与删除 @ Python
二叉树的插入与删除,来自Mark Allen Weiss的《数据结构与算法分析》。# Definition for a binary tree nodeclass TreeNode: def __init__(self, x): self.val = x self...
分类:编程语言   时间:2014-06-17 14:25:01    阅读次数:291
ios中DEBUG中记住用户名和密码
- (void)viewDidLoad{ [super viewDidLoad]; #ifdef DEBUG // 设置测试使用的用户名和密码 self.nameText.text = @“xiaoshuai"; self.pwdText.text = @"123"; [self text...
分类:移动开发   时间:2014-06-17 13:49:29    阅读次数:252
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!