- 博客(4)
- 收藏
- 关注
原创 Valid Palindrome
题目描述:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Panama" is a palindrome."race a car"
2017-04-18 14:37:56 68074
原创 Swift 为Array添加remove方法遇到的问题
在使用Swift的Array的时候发现没有removeObject方法,出于使用原生类型的考虑不打算换成NSMutableArray,于是在网上找到解决方式如下:为Array类添加扩展extension Array where Element: Equatable { // Remove first collection element that is equal to
2017-04-17 17:43:05 3164
原创 3Sum
题目链接:https://leetcode.com/problems/3sum/#/descriptionGiven 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
2017-03-31 21:30:43 226
原创 Prototype
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3492PrototypeTime Limit: 1 Second Memory Limit: 32768 KBPrototype is a 3D game which allow you to contro
2017-03-15 13:45:06 366
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人