摘要: import java.util.Stack; public class Solution { public boolean isValid(String s) { int size=s.length(); if(size==0) return true; boolean res=true; Sta... 阅读全文
posted @ 2016-07-18 21:43 阿怪123 阅读(119) 评论(0) 推荐(0) 编辑
摘要: import java.util.ArrayList; import java.util.List; public class Solution { public List> combine(int n, int k) { List> res=new ArrayList>(); List temp=new ArrayList(); bfs... 阅读全文
posted @ 2016-07-18 14:49 阿怪123 阅读(137) 评论(0) 推荐(0) 编辑