摘要: Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of th 阅读全文
posted @ 2017-08-30 08:18 白常福 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh" 思路:直接转StringBuffer后reserve即可; 阅读全文
posted @ 2017-08-30 07:37 白常福 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. E 阅读全文
posted @ 2017-08-30 07:23 白常福 阅读(95) 评论(0) 推荐(0) 编辑