摘要: Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.思路:回文构词法是由颠倒字母顺序而来的单词。主要的特点就是字母个数和种类都... 阅读全文
posted @ 2014-05-12 08:44 Awy 阅读(125) 评论(0) 推荐(0) 编辑
摘要: The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo... 阅读全文
posted @ 2014-05-12 07:47 Awy 阅读(115) 评论(0) 推荐(0) 编辑