2017年6月23日
摘要: 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 阅读(157) 评论(0) 推荐(0) 编辑
  2017年6月22日
摘要: 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 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(198) 评论(0) 推荐(0) 编辑
  2017年6月10日
摘要: iOS CAShapeLayer、CADisplayLink 实现波浪动画效果 效果图 代码已上传 GitHub:https://github.com/Silence GitHub/CoreAnimationDemo 可以自定义波浪高度、宽度、速度、方向、渐变速度、水的深度等参数。 实现原理 波浪的 阅读全文
posted @ 2017-06-10 18:08 Silence_cnblogs 阅读(3380) 评论(0) 推荐(0) 编辑
  2017年6月9日
摘要: iOS CAEmitterLayer 实现粒子发射动画效果 效果图 代码已上传 GitHub:https://github.com/Silence GitHub/CoreAnimationDemo 动画效果用 CAEmitterLayer 实现。CAEmitterLayer 显示粒子发射动画,具体的 阅读全文
posted @ 2017-06-09 16:40 Silence_cnblogs 阅读(5118) 评论(0) 推荐(1) 编辑
  2017年6月6日
摘要: iOS CAReplicatorLayer 实现脉冲动画效果 效果图 脉冲数量、速度、半径、透明度、渐变颜色、方向等都可以设置。可以用于地图标注(Annotation)、按钮长按动画效果(例如录音按钮)等。 代码已上传 GitHub:https://github.com/Silence GitHub 阅读全文
posted @ 2017-06-06 15:50 Silence_cnblogs 阅读(2538) 评论(1) 推荐(0) 编辑
  2017年5月26日
摘要: LeetCode 21 Merge Two Sorted Lists Question Merge two sorted linked lists and return it as a new list. The new list should be made by splicing togethe 阅读全文
posted @ 2017-05-26 13:59 Silence_cnblogs 阅读(245) 评论(0) 推荐(0) 编辑
摘要: LeetCode 19 Remove Nth Node From End of List Question Given a linked list, remove the n th node from the end of list and return its head. For example, 阅读全文
posted @ 2017-05-26 11:28 Silence_cnblogs 阅读(233) 评论(0) 推荐(0) 编辑