2016年9月12日

【LeetCode】28. Implement strStr() 解题小结

摘要: 题目: Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 简单题。 阅读全文

posted @ 2016-09-12 23:34 医生工程师 阅读(162) 评论(0) 推荐(0) 编辑

【LeetCode】344. Reverse String

摘要: 题目: Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 应该说还是比较简单的。 阅读全文

posted @ 2016-09-12 23:08 医生工程师 阅读(141) 评论(0) 推荐(0) 编辑

【LeetCode】345. Reverse Vowels of a String 解题小结

摘要: 题目: Write a function that takes a string as input and reverse only the vowels of a string. Example 1:Given s = "hello", return "holle". Example 2:Give 阅读全文

posted @ 2016-09-12 23:02 医生工程师 阅读(107) 评论(0) 推荐(0) 编辑

导航