LeetCode #36 Valid Sudoku
摘要:LeetCode 36 Valid Sudoku Question Determine if a Sudoku is valid, according to: "Sudoku Puzzles The Rules" . The Sudoku board could be partially fille
阅读全文
posted @
2017-06-24 22:04
Silence_cnblogs
阅读(298)
推荐(0) 编辑
LeetCode #35 Search Insert Position
摘要:LeetCode 35 Search Insert Position Question Given a sorted array and a target value, return the index if the target is found. If not, return the index
阅读全文
posted @
2017-06-24 10:10
Silence_cnblogs
阅读(295)
推荐(0) 编辑
LeetCode #34 Search for a Range
摘要:LeetCode 34 Search for a Range Question Given an array of integers sorted in ascending order, find the starting and ending position of a given target
阅读全文
posted @
2017-06-24 09:01
Silence_cnblogs
阅读(294)
推荐(0) 编辑
LeetCode #29 Divide Two Integers
摘要:LeetCode 29 Divide Two Integers Question Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_IN
阅读全文
posted @
2017-06-23 22:20
Silence_cnblogs
阅读(235)
推荐(0) 编辑
LeetCode #28 Implement strStr()
摘要:LeetCode 28 Implement strStr() Question Implement strStr(). Returns the index of the first occurrence of needle in haystack, or 1 if needle is not par
阅读全文
posted @
2017-06-23 18:36
Silence_cnblogs
阅读(224)
推荐(0) 编辑
LeetCode #27 Remove Element
摘要:LeetCode 27 Remove Element Question Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate
阅读全文
posted @
2017-06-23 17:12
Silence_cnblogs
阅读(222)
推荐(0) 编辑
LeetCode #26 Remove Duplicates from Sorted Array
摘要:LeetCode 26 Remove Duplicates from Sorted Array Question Given a sorted array, remove the duplicates in place such that each element appear only once
阅读全文
posted @
2017-06-23 15:24
Silence_cnblogs
阅读(159)
推荐(0) 编辑
LeetCode #24 Swap Nodes in Pairs
摘要:LeetCode 24 Swap Nodes in Pairs Question Given a linked list, swap every two adjacent nodes and return its head. For example, Given , you should retur
阅读全文
posted @
2017-06-22 21:53
Silence_cnblogs
阅读(178)
推荐(0) 编辑
LeetCode #22 Generate Parentheses
摘要:LeetCode 22 Generate Parentheses Question Given n pairs of parentheses, write a function to generate all combinations of well formed parentheses. For
阅读全文
posted @
2017-06-22 20:38
Silence_cnblogs
阅读(226)
推荐(0) 编辑
LeetCode #20 Valid Parentheses
摘要:LeetCode 20 Valid Parentheses Question Given a string containing just the characters , , , , and , determine if the input string is valid. The bracket
阅读全文
posted @
2017-06-22 17:08
Silence_cnblogs
阅读(216)
推荐(0) 编辑
LeetCode #14 Longest Common Prefix
摘要:LeetCode 14 Longest Common Prefix Question Write a function to find the longest common prefix string amongst an array of strings. Solution Approach 1
阅读全文
posted @
2017-06-22 15:57
Silence_cnblogs
阅读(202)
推荐(0) 编辑
iOS CAShapeLayer、CADisplayLink 实现波浪动画效果
摘要:iOS CAShapeLayer、CADisplayLink 实现波浪动画效果 效果图 代码已上传 GitHub:https://github.com/Silence GitHub/CoreAnimationDemo 可以自定义波浪高度、宽度、速度、方向、渐变速度、水的深度等参数。 实现原理 波浪的
阅读全文
posted @
2017-06-10 18:08
Silence_cnblogs
阅读(3419)
推荐(0) 编辑
iOS CAEmitterLayer 实现粒子发射动画效果
摘要:iOS CAEmitterLayer 实现粒子发射动画效果 效果图 代码已上传 GitHub:https://github.com/Silence GitHub/CoreAnimationDemo 动画效果用 CAEmitterLayer 实现。CAEmitterLayer 显示粒子发射动画,具体的
阅读全文
posted @
2017-06-09 16:40
Silence_cnblogs
阅读(5179)
推荐(1) 编辑
iOS CAReplicatorLayer 实现脉冲动画效果
摘要:iOS CAReplicatorLayer 实现脉冲动画效果 效果图 脉冲数量、速度、半径、透明度、渐变颜色、方向等都可以设置。可以用于地图标注(Annotation)、按钮长按动画效果(例如录音按钮)等。 代码已上传 GitHub:https://github.com/Silence GitHub
阅读全文
posted @
2017-06-06 15:50
Silence_cnblogs
阅读(2571)
推荐(0) 编辑