![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
PowerzhuV
北邮研二在读
展开
-
醒醒,该刷题了!——LeetCode_2_AddTwoNumbers
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return i...原创 2018-03-16 20:32:58 · 154 阅读 · 0 评论 -
醒醒,该刷题了!——LeetCode_7_ReverseInteger
Given a 32-bit signed integer, reverse digits of an integer.给出一个32位大小的整数(-2147483648~2147483648),逆序输出它。比如:Input: 123Output: 321Input: -123Output: -321Input: 120Output: 21分析:用循环语句,第一次循环先将输入整数最后一位取出...原创 2018-03-18 18:43:37 · 151 阅读 · 0 评论 -
醒醒,该刷题了!——LeetCode_9_PalindromeNumber
Determine whether an integer is a palindrome. Do this without extra space.确认一个整数是否是回数。例如:1234321为回数,12345不是。分析:这个题其实考查的核心还是整数反转,如果一个整数反转后与反转前相同,则为回数。java代码如下:class Solution { public boolean isPali...原创 2018-03-19 16:50:17 · 121 阅读 · 0 评论