码迷,mamicode.com
首页 >  
搜索关键字:palindrome linked li    ( 14538个结果
用正则表达式抓取网页中的ul 和 li标签中最终的值!
获取你要抓取的页面 const string URL = "http://www.hn3ddf.gov.cn/price/GetList.html?pageno=1"; string htmlStr = null; for (int i = 0; i (.*?)", RegexOptions.Si....
分类:Web程序   时间:2014-06-29 00:49:28    阅读次数:369
Swap Nodes in Pairs
题目 Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only const...
分类:其他好文   时间:2014-06-18 11:53:39    阅读次数:138
Palindrome Partitioning II
Palindrome Partitioning II
分类:其他好文   时间:2014-06-18 10:04:30    阅读次数:219
从下往上增加的柱状图生成动画(适用于统计类应用)
我们在一些统计,li'cai...
分类:其他好文   时间:2014-06-18 06:42:39    阅读次数:190
[leetcode] 2. Add Two Numbers
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 ...
分类:其他好文   时间:2014-06-17 23:38:04    阅读次数:341
leetcode -day30 Reverse Linked List II
1、 ?? Reverse Linked List II  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....
分类:其他好文   时间:2014-06-17 23:03:12    阅读次数:257
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. If the number of nodes is not a multiple of k then left-out nodes in the end should rem...
分类:其他好文   时间:2014-06-17 22:15:52    阅读次数:299
Remove Nth Node From End of List
题目 Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from th...
分类:其他好文   时间:2014-06-17 21:38:12    阅读次数:193
Merge k Sorted Lists
题目 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 方法 使用归并排序的思想,两两合并,直到最终变成一个。 public ListNode mergeKLists(ArrayList lists) {...
分类:其他好文   时间:2014-06-17 21:34:41    阅读次数:183
Palindrome Number
题目 Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) If you are thinking of converting the integer to ...
分类:其他好文   时间:2014-06-17 16:12:39    阅读次数:226
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!