摘要:
/*判断括号匹配问题,用一个栈保存判断即可*/class Solution {public: bool isValid(string s) { int len = s.length(); stacks1; for(int i = 0 ; i < len... 阅读全文
posted @ 2015-04-14 20:13
SprayT
阅读(99)
评论(0)
推荐(0)
摘要:
/*判断一个字符串是否是回文串(只包括数字和字母并且不区分大小写)*/class Solution {public: bool isAlphanumeric(char ch){ if((ch>='0' && ch='a' && ch='A' && ch<='Z') return ... 阅读全文
posted @ 2015-04-14 19:28
SprayT
阅读(98)
评论(0)
推荐(0)
摘要:
/*给一个不完整的数独,'.'代表为空判断数独是否合法*/public class Solution { public boolean check1(char[][] board){ for(int i = 0 ; i < 9 ; i ++){ int[] ... 阅读全文
posted @ 2015-04-14 15:05
SprayT
阅读(88)
评论(0)
推荐(0)

浙公网安备 33010602011771号