
leetCode
清枫若待佳人醉
目前就职腾讯,从事推荐引擎相关工作,有感兴趣的可以互相讨论。
展开
-
557. Reverse Words in a String III
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.Example 1: Input: “Let’s take LeetCode contest” Out原创 2017-11-27 13:28:56 · 209 阅读 · 0 评论 -
7. Reverse Integer
题目简介: 给一个整型数,将它逆置过来:Example 1:Input: 123 Output: 321 Example 2:Input: -123 Output: -321 Example 3:Input: 120 Output: 21思路: 如果该数后面是连续的0,逆置过来没有0,由于逆置之后也是数字,打印出来不会显示。 考虑到整型逆置溢出的问题,有符号整数的范围为-2147483648~2原创 2018-02-07 16:24:26 · 180 阅读 · 0 评论