码迷,mamicode.com
首页 >  
搜索关键字:should    ( 4948个结果
【leetcode】First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:其他好文   时间:2014-07-22 22:52:33    阅读次数:166
[leetcode]Merge Two Sorted Lists
Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the fir...
分类:其他好文   时间:2014-07-22 22:51:35    阅读次数:146
(CF#257)C. Jzzhu and Chocolate
Jzzhu has a big rectangular chocolate bar that consists of n?×?m unit squares. He wants to cut this bar exactly k times. Each cut must meet the following requirements: each cut should be straig...
分类:其他好文   时间:2014-07-22 22:49:15    阅读次数:192
uva 458 - The Decoder
The DecoderWrite a complete program that will correctly decode a set of characters into a valid message. Your program should read a given file of a si...
分类:其他好文   时间:2014-07-22 00:38:34    阅读次数:235
LeetCode:Single Number II
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:其他好文   时间:2014-07-22 00:28:38    阅读次数:209
《modern operating system》 chapter 5 Input and output 笔记
Input / Output It should also provide an interface between the devices and the rest of the system that is simple and easy to use. 于是乎这里就有了对于硬盘等IO设备的抽象。 5.1 PRINCIPLES OF I/O HARDWARE...
分类:其他好文   时间:2014-07-21 23:31:54    阅读次数:548
IOS开发经验分享
一些IOS开发的心得:1) [Multiple Threads] IOS多线程注意, 所有的UI操作都必须在主线程上:Any code that will update the UI should be done on the main thread. Data loading should typ...
分类:移动开发   时间:2014-07-21 23:31:02    阅读次数:403
[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 pres...
分类:其他好文   时间:2014-07-21 08:28:54    阅读次数:230
LeetCode:Single Number
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:其他好文   时间:2014-07-21 00:39:31    阅读次数:249
Dictionaries and tuples
Dictionaries have a method called items that returns a list of tuples, where each tuple is a key-value pair. As you should expect from a dictionary, t...
分类:其他好文   时间:2014-07-19 23:02:40    阅读次数:372
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!