摘要: Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "olleh". 解法一:直接用reverse函数 1 class So 阅读全文
posted @ 2016-05-19 20:50 琴影 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 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: Given 阅读全文
posted @ 2016-05-19 20:43 琴影 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 349. Intersection of Two Arrays Total Accepted: 2944 Total Submissions: 6253 Difficulty: Easy Given two arrays, write a function to compute their inte 阅读全文
posted @ 2016-05-19 20:22 琴影 阅读(250) 评论(0) 推荐(0) 编辑
摘要: Prime Ring Problem Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 40640 Accepted Submission(s): 阅读全文
posted @ 2016-05-19 08:54 琴影 阅读(185) 评论(0) 推荐(0) 编辑