摘要:
题目链接Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime comple... 阅读全文
摘要:
题目链接 链表的插入排序Sort a linked list using insertion sort.建议:为了操作方便,添加一个额外的头结点。代码如下: 本文地址 1 /** 2 * Def... 阅读全文
摘要:
题目链接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... 阅读全文
摘要:
题目链接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... 阅读全文
摘要:
题目如下: (题目链接)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... 阅读全文
摘要:
LeetCode:Palindrome Partitioning题目如下:(把一个字符串划分成几个回文子串,枚举所有可能的划分)Given a strings, partitionssuch that every substring of the partition is a palindrome.... 阅读全文