LintCode:回文链表
来源:互联网 发布:php call stack 编辑:程序博客网 时间:2024/05/16 07:26
LintCode:回文链表
# Definition for singly-linked list.# class ListNode:# def __init__(self, x):# self.val = x# self.next = Noneclass Solution: # @param head, a ListNode # @return a boolean def isPalindrome(self, head): if head == None: return True L = [] p1 = head while p1 != None: L.append(p1.val) p1 = p1.next if L == L[::-1]: return True return False
0 0
- LintCode:回文链表
- LintCode:回文链表
- lintcode,回文链表
- LintCode 回文链表
- 回文链表-LintCode
- lintcode--回文链表
- 回文链表 -LintCode
- lintcode-回文链表-223
- [LintCode]223.回文链表
- lintcode-有效回文字符串
- LintCode : 有效回文串
- LintCode-有效回文串
- lintcode刷题--回文串
- LintCode- 分割回文串
- lintcode --有效回文串
- 最长回文字串 lintcode
- LintCode:回文串
- LintCode:分割回文串
- Android Studio--gradle,jCenter
- 机器学习算法之朴素贝叶斯(Naive Bayes)--第一篇
- LeetCode|Two Sum
- matplotlib 绘图库的简单用法
- 单例模式的七种写法
- LintCode:回文链表
- MySQL和JDBC
- [Android] ImageView.ScaleType设置图解
- 堆和栈的区别:
- browserify总结
- 丁丁的学习博客开通了
- Java线程:有返回值的线程
- ListView下拉刷新的实现
- JAVA内存泄露的原因分析