自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 收藏
  • 关注

转载 LeetCode: 18. 4Sum

题目:LeetCode:18. 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 ...

2017-06-30 18:30:00 105

转载 LeetCode: 17. Letter Combinations of a Phone Number

题目:LeetCode: 17. Letter Combinations of a Phone Number描述:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like...

2017-06-29 19:41:00 135

转载 LeetCode:16. 3Sum Closest

题目:LeetCode: 16. 3Sum Closest描述:Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may a...

2017-06-29 19:10:00 95

转载 15. 3Sum

题目:LeetCode:15. 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.找出数组中三个元素和为0的...

2017-06-28 21:45:00 99

转载 14. Longest Common Prefix

题目:LeetCode:14. Longest Common Prefix描述:Write a function to find the longest common prefix string amongst an array of strings.求字符串数组的最长公共前缀。分析: 思路: 1、遍历vector中每个字串,将之与之前得到的公共字串进行比较; 2、将首个...

2017-06-27 18:30:00 82

转载 13. Roman to Integer

题目:LeetCode:13. Roman to Integer描述:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.题意为 给定一个罗马数字转换为整数(1-3999)输出。分析:1、分析 1-4000可能出现...

2017-06-21 18:28:00 65

转载 12. Integer to Roman

题目:LeetCode:12. Integer to Roman描述:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.题意为 给定一个整数(1-3999)转换为罗马数字输出。分析:暴力方式 // 思路;...

2017-06-14 19:55:00 58

转载 11.Container With Most Water

题目:LeetCode:11. Container With Most Water描述:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). nvertical lines are drawn such that the two end...

2017-06-14 19:39:00 57

转载 10. Regular Expression Matching

题目:LeetCode:10. Regular Expression Matching描述:Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding ...

2017-05-26 00:20:00 52

转载 Leetcode:9. Palindrome Number

题目:Leetcode:9. Palindrome Number描述:内容:Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are think...

2017-05-17 00:00:00 86

转载 Leetcode:7. Reverse Integer

7. Reverse Integer题目:Leetcode:7. Reverse Integer描述:内容:Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321题意:判断输入的一个有符号整型数字,倒序输出分析:思路如下:将每个字符...

2017-05-16 00:00:00 99

转载 LeetCode :6. ZigZag Conversion

LeetCode : ZigZag Conversion题目:LeetCode:6. ZigZag Conversion描述:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this p...

2017-05-14 23:30:00 131

转载 LeetCode:1. Add Two Numbers

题目:LeetCode:1. Add Two Numbers描述:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly on...

2017-05-11 00:13:00 83

转载 LeetCode: 2. Add Two Numbers

题目:LeetCode:2. Add Two Numbers描述:You are given two non-empty linked lists representing two non-negative integers.The digits are stored in reverse order and each of their nodes contain a sing...

2017-05-10 00:41:00 82

转载 LeetCode:36. Valid Sudoku,数独是否有效

LeetCode:36. Valid Sudoku,数独是否有效 :题目: LeetCode:36. Valid Sudoku描述: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where ...

2017-05-07 23:51:00 151

转载 LeetCode:60. Permutation Sequence,n全排列的第k个子列

LeetCode:60. Permutation Sequence,n全排列的第k个子列 :题目:LeetCode:60. Permutation Sequence描述:The set [1,2,3,…,n] contains a total of n! unique permutations.By listing and labeling all of the perm...

2017-05-07 17:44:00 144

转载 ContentSize、Contentoffset以及ContentInset属性

ContentSizeUIScrollView可以滚动的区域。在我的理解中,我把UIScrollView看成是具有上下两层的一个复合视图,frame控制着上层的大小,我们看到的UIScrollView的大小实际就是frame的大小,上层固定不动,显示的变化,由下层的滚动来控制。而下层滚动的区域的大小,就是由contentSize来控制的了。例如:若frame = (0, 0, 320...

2016-04-20 11:41:00 100

转载 Git/Github 教程

转载自链接(http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000)转载于:https://www.cnblogs.com/liuwfuang96/p/5345510.html

2016-04-01 16:57:00 157

转载 关于iOS多线程,你看我就够了

转载自简书网 作者 伯恩的遗产 2015.07.29 00:37*http://www.jianshu.com/p/0b0d9b1f1f19文/伯恩的遗产(简书作者)原文链接:http://www.jianshu.com/p/0b0d9b1f1f19著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。在这篇文章中,我将为你整理一下 iOS 开发中几种多线程方案,以及...

2016-03-29 14:58:00 69

转载 刨根问底:对于 self = [super init] 的思考

原文出处: Martin_wjl(@Martin_wjl)转载自 伯乐在线对象初始化有两种方式:[class new] 与 [[class alloc] init]对于后者,有分配和初始化的过程,alloc 从应用程序的虚拟地址空间上为该对象分配足够的内存,并且将新对象的引用计数加1、将对象的成员变量初始为零,init 会做真正的初使化工作,为对象的实例变量赋予合理...

2016-03-29 11:34:00 79

转载 圆形头像制作

//1.设置圆角 self.imageView.layer.masksToBounds = YES;//2.设置圆形图案半径 self.imageView.layer.cornerRadius = self.imageView.layer.bounds.size.width *0.5;//3.设置边框颜色 self.imageView.layer.borderColor...

2016-03-21 17:26:00 58

转载 CATransition 转场动画解析

http://blog.csdn.net/mad2man/article/details/17260901转载于:https://www.cnblogs.com/liuwfuang96/p/4983576.html

2015-11-21 12:58:00 119

转载 [ios]quartz2d画板功功能实现核心代码

//触摸开始-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{ // 1,获取对应的touch对象 UITouch *touch = [touches anyObject];// 2,通过touch对象获取手指触摸对象 CG...

2015-11-18 10:38:00 77

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除