- 博客(3)
- 资源 (5)
- 收藏
- 关注
原创 【leetcode】9. Palindrome Number
问题描述:Determine whether an integer is a palindrome. Do this without extra space.翻译:判断一个整数是否为回文序列,要求不要使用额外的存储空间。【c++版】class Solution {public: bool isPalindrome(int x) { }};解题答案,步骤
2017-06-07 10:07:11 303
原创 【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 co
2017-06-27 10:50:44 293
原创 【leetcode】561. Array Partition I
【问题描述】Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for all i from 1 to
2017-06-25 20:32:47 315
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人