摘要: Implement an algorithm to print all valid ( properly opened and closed) combinations of n-pairs of parentheses.思路:比如 n = 3, ((())) 就是一个valid combinati... 阅读全文
posted @ 2014-06-06 13:30 门对夕阳 阅读(295) 评论(0) 推荐(0)
摘要: Problem: Compute all permutations of a string of unique characters.此题用循环的方式不好做,下面是一种递归的思路:把给的字符串看成一个字符集合,每次从这个集合里拿出一个字符来填到下面的空格中。填的顺序从左到右。把a1填到第一个空格里是... 阅读全文
posted @ 2014-06-06 09:34 门对夕阳 阅读(385) 评论(0) 推荐(0)
摘要: 更新到新的 Mac OS X 再打开Eclipse 编译程序会报错,Exception in thread "main" java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0原因是Eclipse 找不... 阅读全文
posted @ 2014-06-06 03:23 门对夕阳 阅读(2399) 评论(0) 推荐(0)