随笔分类 -  leetcode练习

模式和字符串的匹配
摘要:290. Word Pattern 290. Word Pattern Total Accepted: 45113 Total Submissions: 148465 Difficulty: Easy Given a pattern and a string str, find if str fol 阅读全文
posted @ 2016-07-26 21:53 人生一世,草木一秋。 阅读(247) 评论(0) 推荐(0)
组合游戏-博弈论中经典模型题目
摘要:292. Nim Game 292. Nim Game Total Accepted: 84580 Total Submissions: 157260 Difficulty: Easy You are playing the following Nim Game with your friend: 阅读全文
posted @ 2016-07-26 20:03 人生一世,草木一秋。 阅读(380) 评论(0) 推荐(0)
判断一个数是不是另一个数的幂问题
摘要:342. Power of Four 342. Power of Four Total Accepted: 28742 Total Submissions: 81051 Difficulty: Easy Given an integer (signed 32 bits), write a funct 阅读全文
posted @ 2016-07-26 19:27 人生一世,草木一秋。 阅读(868) 评论(0) 推荐(0)
求数组中任意两个数之间所有数字的和
摘要:303. Range Sum Query - Immutable 求数组中任意两个数之间所有数字的和 QuestionEditorial Solution My Submissions 303. Range Sum Query - Immutable QuestionEditorial Soluti 阅读全文
posted @ 2016-07-24 10:07 人生一世,草木一秋。 阅读(662) 评论(0) 推荐(0)
字符串中的元音字母翻转输出
摘要:字符串中的元音字母翻转 345. Reverse Vowels of a String QuestionEditorial Solution My Submissions 345. Reverse Vowels of a String QuestionEditorial Solution My Su 阅读全文
posted @ 2016-07-24 09:37 人生一世,草木一秋。 阅读(386) 评论(0) 推荐(0)
字符串翻转输出
摘要:344. Reverse String QuestionEditorial Solution My Submissions 344. Reverse String QuestionEditorial Solution My Submissions QuestionEditorial Solution 阅读全文
posted @ 2016-07-23 22:05 人生一世,草木一秋。 阅读(403) 评论(0) 推荐(0)