摘要: There are N gas stations along a circular route, where the amount of gas at station i isgas[i]. You have a car with an unlimited gas tank and it costs 阅读全文
posted @ 2017-07-13 17:02 王大咩的图书馆 阅读(351) 评论(0) 推荐(0)
摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan 阅读全文
posted @ 2017-07-13 16:01 王大咩的图书馆 阅读(202) 评论(0) 推荐(0)
摘要: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: " 阅读全文
posted @ 2017-07-13 11:08 王大咩的图书馆 阅读(2882) 评论(0) 推荐(0)
摘要: Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho 阅读全文
posted @ 2017-07-13 10:18 王大咩的图书馆 阅读(296) 评论(0) 推荐(0)