![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
discard
feeeeeeet
这个作者很懒,什么都没留下…
展开
-
Leetcode 9. Palindrome Number
same with Leetcode 7class Solution { public boolean isPalindrome(int x) { if(x<0){ return false; } int num=0; int tmp=x; while(tmp!=0){ ...原创 2018-11-13 05:20:45 · 120 阅读 · 0 评论 -
Leetcode 26. Remove Duplicates from Sorted Array
class Solution { public int removeDuplicates(int[] nums) { int pre=1; int cur=1; if(nums.length<=1){ return nums.length; } int curNu...原创 2018-11-16 06:42:51 · 71 阅读 · 0 评论 -
Leetcode 58. Length of Last Word
special case “a b ”class Solution(object): def lengthOfLastWord(self, s): """ :type s: str :rtype: int """ result=0 index=len(s)-1 whi...原创 2018-12-12 07:58:26 · 77 阅读 · 0 评论