原题链接在这里:https://leetcode.com/problems/reverse-bits/新学了一种API, Integer.reverse()可以直接返回binary的reverse. 参考链接:http://www.tutorialspoint.com/java/lang/integ...
分类:
其他好文 时间:
2015-09-24 00:42:11
阅读次数:
133
翻译翻转一个整型数例1:x = 123, 返回 321
例2:x = -123, 返回 -321原文Reverse digits of an integer.Example1: x = 123, return 321
Example2: x = -123, return -321Have you thought about this? (来自LeetCode官网)Here are some good...
分类:
其他好文 时间:
2015-09-23 10:35:41
阅读次数:
147
题目:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Update (2015-02-12):For C p...
分类:
其他好文 时间:
2015-09-23 00:53:57
阅读次数:
136
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2015-09-22 06:38:00
阅读次数:
238
原题链接在这里:https://leetcode.com/problems/reverse-words-in-a-string/把原有string s按照空格分开存入strArr中,再从strArr尾部开始一个一个加到StringBuikder中即可。Note: 1.这里学习了几个新的API, s....
分类:
其他好文 时间:
2015-09-21 06:58:42
阅读次数:
150
1、题目名称 Reverse Integer(翻转数字) 2、题目地址 https://leetcode.com/problems/reverse-integer/ 3、题目内容 英文:Reverse digits of an integer. 中文:翻转一个正整数的各位,形成一个新数字 例如:x...
分类:
其他好文 时间:
2015-09-20 22:32:10
阅读次数:
288
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2015-09-20 17:43:41
阅读次数:
255
LeetCode -- Reverse Integer...
分类:
其他好文 时间:
2015-09-20 00:29:12
阅读次数:
121
1. StringBuffer 的反转功能:public StringBuffer reverse():2. 案例演示: 1 package cn.itcast_05; 2 3 /* 4 * StringBuffer的反转功能: 5 * public StringBuffer reverse(...
分类:
编程语言 时间:
2015-09-19 21:09:47
阅读次数:
169
LeetCode -- Reverse Linked List...
分类:
其他好文 时间:
2015-09-19 18:21:35
阅读次数:
156