码迷,mamicode.com
首页 >  
搜索关键字:should    ( 4948个结果
leetcode之Median of Two Sorted Arrays
Median of Two Sorted Arrays 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 O(log (...
分类:其他好文   时间:2014-08-27 14:47:18    阅读次数:148
Spiral Matrix II
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...
分类:其他好文   时间:2014-08-26 19:19:56    阅读次数:165
leetcode - Partition List
题目:Partition ListGiven a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should p...
分类:其他好文   时间:2014-08-26 13:08:16    阅读次数:401
CF-85D-Sum of Medians(线段树)
In one well-known algorithm of finding the k-th order statistics we should divide all elements into groups of five consecutive elements and find the median of each five. A median is called the middl...
分类:其他好文   时间:2014-08-25 22:50:55    阅读次数:297
Merge Two Sorted Lists
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.思路: 1 cla...
分类:其他好文   时间:2014-08-25 18:38:04    阅读次数:211
hdu1102 Constructing Roads (简单最小生成树Prim算法)
Problem DescriptionThere are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to e...
分类:其他好文   时间:2014-08-23 15:15:40    阅读次数:234
compute Binomial Coefficient or combinations with dynamic programming
The ProblemWrite a function that takes two parameters n and k and returns the value of Binomial Coefficient C(n, k).For example, your function should ...
分类:其他好文   时间:2014-08-23 12:41:20    阅读次数:169
LeetCode: Single Number
LeetCode: Single NumberGiven an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a...
分类:其他好文   时间:2014-08-23 12:38:10    阅读次数:212
Remove Duplicates from Sorted Array II
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 r...
分类:其他好文   时间:2014-08-23 11:18:00    阅读次数:167
当开发者产生一个伟大的想法之后应该做的10件事
[转载]英文原文:The 10 Things You Should Do When You Have Your Next Web Idea 当你正和家人享受一个悠闲的午后,一个不错的想法突然出现在你的脑海里。不管它是一个 App 还是服务,或是一个新的概念。只要你把这个想法付诸实践,它就可能会...
分类:其他好文   时间:2014-08-22 19:25:09    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!