本博客rss订阅地址: http://feed.cnblogs.com/blog/u/147990/rss
摘要: 题目链接Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime comple... 阅读全文
posted @ 2013-11-13 22:34 tenos 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 题目链接 链表的插入排序Sort a linked list using insertion sort.建议:为了操作方便,添加一个额外的头结点。代码如下: 本文地址 1 /** 2 * Def... 阅读全文
posted @ 2013-11-13 22:13 tenos 阅读(2703) 评论(1) 推荐(0) 编辑
摘要: 题目链接Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The long... 阅读全文
posted @ 2013-11-13 21:38 tenos 阅读(1064) 评论(0) 推荐(0) 编辑
摘要: 题目链接Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which... 阅读全文
posted @ 2013-11-13 16:44 tenos 阅读(674) 评论(0) 推荐(0) 编辑
摘要: 题目如下: (题目链接)Given a 2D board containing'X'and'O', capture all regions surrounded by'X'.A region is captured by flipping all'O's into'X's in that surro... 阅读全文
posted @ 2013-11-13 15:46 tenos 阅读(788) 评论(0) 推荐(0) 编辑
摘要: LeetCode:Palindrome Partitioning题目如下:(把一个字符串划分成几个回文子串,枚举所有可能的划分)Given a strings, partitionssuch that every substring of the partition is a palindrome.... 阅读全文
posted @ 2013-11-13 13:56 tenos 阅读(1570) 评论(0) 推荐(0) 编辑

本博客rss订阅地址: http://feed.cnblogs.com/blog/u/147990/rss

公益页面-寻找遗失儿童