problem:
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of...
分类:
其他好文 时间:
2015-04-14 19:45:50
阅读次数:
149
Given an array of words and a lengthL, format the text such that each line has exactlyLcharacters and is fully (left and right) justified.You should p...
分类:
其他好文 时间:
2015-04-14 19:35:33
阅读次数:
107
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array A = [1,1,1,2,2,3],
Your function should return length = 5, and A is now [1,1,2,...
分类:
其他好文 时间:
2015-04-14 18:09:17
阅读次数:
119
目录目录
题目
解题思路
AC SQL题目Write a SQL query to find all duplicate emails in a table named Person.
Id
Email 1
a@b.com
2
c@d.com
3
a@b.com
For example, your query should return the following fo...
分类:
其他好文 时间:
2015-04-14 14:38:54
阅读次数:
154
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:
get and set.
get(key) - Get the value (will always be positive) of the key if t...
分类:
系统相关 时间:
2015-04-14 13:04:48
阅读次数:
185
题目:Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ...
分类:
其他好文 时间:
2015-04-13 20:47:32
阅读次数:
129
引言: 在Java中,使用POI来进行excel的读取和解析是常用的一种做法;在office的excel中存在2007,2003两种不同的格式,通常情况下是以xls/xlsx的不同后缀来区分的,但用户可能不知道这个区别,所以会出现格式无法兼容的异常...
分类:
编程语言 时间:
2015-04-13 19:00:10
阅读次数:
244
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.这道题是合并两个有...
分类:
其他好文 时间:
2015-04-13 18:25:38
阅读次数:
97
331down voteacceptedSee it inActivity Lifecycle(at Android Developers).onCreate():Called when the activity is first created. This is where you should ...
分类:
移动开发 时间:
2015-04-13 16:38:35
阅读次数:
385
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 constant space. You m...
分类:
其他好文 时间:
2015-04-13 12:58:22
阅读次数:
77