摘要: 待补充。Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the lon... 阅读全文
posted @ 2015-10-24 18:20 AprilCheny 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe... 阅读全文
posted @ 2015-10-24 18:16 AprilCheny 阅读(178) 评论(0) 推荐(0) 编辑
摘要: The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw... 阅读全文
posted @ 2015-10-24 11:23 AprilCheny 阅读(386) 评论(0) 推荐(0) 编辑
摘要: Compare two version numbersversion1andversion2.Ifversion1>version2return 1, ifversion1 vs1 = split(version1, '.'); vector vs2 = split(version2,... 阅读全文
posted @ 2015-10-24 09:32 AprilCheny 阅读(209) 评论(0) 推荐(0) 编辑