Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2015-04-13 18:23:52
阅读次数:
105
题目:leetcode
Longest Valid Parentheses
Given a string containing just the characters '(' and ')',
find the length of the longest valid (well-formed) parentheses substring.
For "(()", the l...
分类:
其他好文 时间:
2015-04-13 16:44:58
阅读次数:
99
Pattern lock security is generally used in Android handsets instead of a password. The pattern lock can be set by joining points on a 3 × 3 matrix in ...
分类:
其他好文 时间:
2015-04-13 14:24:32
阅读次数:
108
题意:
给n个不同的整数(3
输出方案数,以及按字典序输出每种方案。
思路:
一个很水的dfs全排列,加上特判就好了。
特判就是1->9的话就必定经过5等。
这里要注意的是。
中间所经过的数字是必须存在的。
比如要想1->9就必须有5.
5要么被用过,要么就经过5
例子就是 1 3 5 9这四个数。
实际的方案是只有2种
3 5 1 9 和 3 5 9 1
然后就是输入完...
分类:
其他好文 时间:
2015-04-13 12:56:19
阅读次数:
135
最近买了本书在自学做微信公众平台开发,自定义菜单这一块,做的不好请大家多多指教,自定义菜单开发,借鉴一些大神的代码responseMsg();}else{ $wechatObj->valid();}class wechatCallbackapiTest{ //验证签名 public...
分类:
微信 时间:
2015-04-13 12:22:02
阅读次数:
337
Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ...
分类:
其他好文 时间:
2015-04-13 08:13:12
阅读次数:
187
今天上线APP,在archive处遇到故障。Xcode一直报You have a valid iOS Distribution certificate in the Member Center...错误。经过反复检查发现是对证书理解的不到位:1 在有通知的情况下,APPID处需要添加develope...
分类:
移动开发 时间:
2015-04-13 00:09:01
阅读次数:
1125
Pattern lock security is generally used in Android handsets instead of a password. The pattern lock can be set by joining points on a 3 × 3 matrix in a chosen order. The points of the
matrix are reg...
分类:
其他好文 时间:
2015-04-12 22:44:13
阅读次数:
204
每个点有16种方向,向某个方向走一步或者两步,dfs把找到的数都存下来就可以了.....
Valid Pattern Lock
Time Limit: 2 Seconds Memory Limit: 65536 KB
Pattern lock security is generally used in Android handsets instead of ...
分类:
其他好文 时间:
2015-04-12 21:10:48
阅读次数:
162