摘要:
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.题目:给一组字符串,返回所有满足Anagrams(回文构词法)的字符串;A... 阅读全文
摘要:
题目:将一个字符串转换成一个整数,要求不能使用字符串转换整数的库函数。思路:考虑+、-、空格、非数字字符,以及溢出问题代码:#include using namespace std;enum Status {kValid=0,kInvalid};int g_nStatus=kInvalid;long... 阅读全文
摘要:
Problem:There are three poles and N disks where each disk is heaver than the next disk. In the initial conguration, the discs are stacked upon another... 阅读全文