- 博客(3)
- 收藏
- 关注
原创 344. Reverse String
Problem StatementWrite a function that takes a string as input and returns the string reversed.Example 1:Given s = "hello", return "olleh". Thinking反转单词。Solutionclass Solution { public String rever
2017-11-02 20:48:32 263
原创 557. Reverse Words in a String III
Problem StatementGiven a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.Example 1:Input: "Let's take LeetCod
2017-11-02 20:46:03 270
原创 575. Distribute Candies
Problem StatementGiven an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of the corresponding kind. You need to
2017-11-02 20:37:57 229
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人