码迷,mamicode.com
首页 >  
搜索关键字:palindrome linked li    ( 14538个结果
reverse a linked-list(C++)
#includeusing namespace std;class Node{public: Node(int value) : value(value), next(NULL) {}public: int value; Node* next;};Node* reverseList...
分类:编程语言   时间:2014-06-27 20:02:00    阅读次数:253
leetcode - Linked List Cycle
题目:Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?个人思路:1、判断一个链表是否有环,标准做法...
分类:其他好文   时间:2014-06-27 19:41:40    阅读次数:165
切换加上延迟加载js代码
切换加上延迟加载js代码(function(){ var tit = $("#tab02 li"), con = $("#wrapmp>div"), cur = 'cur'; tit.click(function(){ var index = tit...
分类:Web程序   时间:2014-06-27 18:03:03    阅读次数:176
[leetcode] Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
分类:其他好文   时间:2014-06-27 12:48:46    阅读次数:259
[leetcode] Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.
分类:其他好文   时间:2014-06-27 12:42:55    阅读次数:198
[leetcode] Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.
分类:其他好文   时间:2014-06-27 12:29:18    阅读次数:294
[leetcode] Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.
分类:其他好文   时间:2014-06-27 12:28:06    阅读次数:228
增强基本选择器[selector_3.html]
增强基本选择器[selector_3.html] $("ul li:first") $("ul li:last") $("table tr:even") $("table tr:odd") $("table tr:eq(0)") $("table tr:gt(0)") $(...
分类:Web程序   时间:2014-06-26 16:45:45    阅读次数:175
LeetCode: Palindrome Partitioning [131]
【题目】 Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s = "aab", Return [ ["aa","b"], ["a","a","b"] ] 【题意】 给定一个字符串s, 要求对s进行...
分类:其他好文   时间:2014-06-26 13:21:59    阅读次数:182
LeetCode: Palindrome Partitioning II [132]
【题目】 Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s. For example, given s = "aab", Return 1 since the palindrome partitioning ["aa","b"] could b...
分类:其他好文   时间:2014-06-26 07:48:00    阅读次数:259
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!