一、描述
回文的定义:"回文数" 就是正读倒读都一样的整数。如奇数个数字:98789, 这个数字正读是98789,倒读也是98789;偶数个数字3223也是回文数。
我们今天将回文数扩展为字母和数字组合回文,如adgu6776ugda也是回文,我们采用三种方式判断这种类型的字符串是否为回文:
1.调用StringBuffer类对象的reverse()方法,将字符串翻转后与之前的字符串比较,如...
分类:
编程语言 时间:
2015-01-14 15:34:38
阅读次数:
293
Reverse Linked List IIReverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return...
分类:
其他好文 时间:
2015-01-14 10:59:29
阅读次数:
224
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/reverse-integer/Reverse digits of an integer.Example1: x ...
分类:
其他好文 时间:
2015-01-14 00:36:01
阅读次数:
167
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n = 4,
return 1->4->3->2->5->NULL.
Note:
Given m, n satisfy the...
分类:
其他好文 时间:
2015-01-13 19:52:19
阅读次数:
124
problem:
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 digit. Add the two numbers and return it...
分类:
其他好文 时间:
2015-01-13 17:45:37
阅读次数:
136
https://oj.leetcode.com/problems/reverse-words-in-a-string/Given an input string, reverse the string word by word.For example,Given s = "the sky is bl...
分类:
其他好文 时间:
2015-01-13 13:54:37
阅读次数:
135
Reverse Nodes in k-GroupGiven a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a...
分类:
其他好文 时间:
2015-01-12 22:27:19
阅读次数:
193
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:
其他好文 时间:
2015-01-12 17:27:56
阅读次数:
158
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is...
分类:
其他好文 时间:
2015-01-12 09:24:02
阅读次数:
136
做此题仅仅是为了验证apk反编译新工具以及试用新的源代码文本编辑工具。感谢老白兄弟的推荐。1、dexdecompile基于androguard的dex包反编译器。下载题目rev100,添加后缀zip。(apk实际上就是个zip包),rar解压缩出来class.dex。dexdecompileclass.dexrev100在rev100目录下,会..
分类:
其他好文 时间:
2015-01-11 17:54:06
阅读次数:
198