Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:
其他好文 时间:
2015-03-28 15:46:40
阅读次数:
119
题目:2.2.3 Partition ListGiven 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-03-28 11:35:33
阅读次数:
145
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:
其他好文 时间:
2015-03-21 22:51:10
阅读次数:
200
Question: I have this if statement: if (input == 'day') Console.Write({0}, dayData); When the user types 'day' it should be so that the console write....
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.https://l...
分类:
其他好文 时间:
2015-03-21 19:53:40
阅读次数:
135
Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the...
分类:
其他好文 时间:
2015-03-21 19:49:32
阅读次数:
121
问题描述:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the t...
分类:
其他好文 时间:
2015-03-21 18:24:54
阅读次数:
124
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2015-03-21 16:54:40
阅读次数:
126
题目‘?’ Matches any single character.
‘*’ Matches any sequence of characters (including the empty sequence).The matching should cover the entire input string (not partial).The function prototype should...
分类:
编程语言 时间:
2015-03-21 12:43:07
阅读次数:
190
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.
For example,
Given n = 3,
You should return the following matrix:
[
[ 1, 2, 3 ],
[ 8, 9, 4 ],
[...
分类:
其他好文 时间:
2015-03-21 12:41:11
阅读次数:
105