题目: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
Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on...
分类:
其他好文 时间:
2015-04-13 14:10:41
阅读次数:
113
题意:
给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
https://leetcode.com/problems/sudoku-solver/Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the chara...
分类:
其他好文 时间:
2015-04-12 22:20:39
阅读次数:
128