摘要: Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.e.g. "tea","and","ate","eat","dan". return"and","dan","tea","ate","eat"anangrams意思是重新排列 阅读全文
posted @ 2012-06-29 00:42 ETCOW 阅读(711) 评论(0) 推荐(0) 编辑
摘要: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?解法1 - 递归:1 public static int ClimbStairsRecursive(int n)2 {3 if (n <= 2)4 return n;5 ... 阅读全文
posted @ 2012-06-29 00:42 ETCOW 阅读(466) 评论(0) 推荐(0) 编辑