码迷,mamicode.com
首页 > 其他好文
[leetcode] Count and Say
The count-and-say sequence is the sequence of integers beginning as follows:
分类:其他好文   时间:2014-06-27 12:15:20    阅读次数:212
[leetcode] Remove Element
Given an array and a value, remove all instances of that value in place and return the new length.
分类:其他好文   时间:2014-06-27 12:17:58    阅读次数:156
Libevent 定时器
先摘一点网上的介绍libevent是一个事件触发的网络库,适用于windows、linux、bsd等多种平台,内部使用select、epoll、kqueue等系统调用管理事件机制。著名分布式缓存软件memcached也是libevent based,而且libevent在使用上可以做到跨平台,而且根...
分类:其他好文   时间:2014-06-27 12:16:35    阅读次数:196
[leetcode] Valid Sudoku
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.
分类:其他好文   时间:2014-06-27 12:18:39    阅读次数:153
[leetcode] Permutations
Given a collection of numbers, return all possible permutations.
分类:其他好文   时间:2014-06-27 12:19:22    阅读次数:241
(转)AVI文件格式解析+AVI文件解析工具
AVI文件解析工具下载地址:http://download.csdn.net/detail/zjq634359531/7556659 AVI(Audio Video Interleaved的缩写)是一种RIFF(Resource Interchange File Format的缩写)文件格式,多用....
分类:其他好文   时间:2014-06-27 12:20:07    阅读次数:251
[leetcode] Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:其他好文   时间:2014-06-27 12:21:24    阅读次数:215
[leetcode] Container With Most Water
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo...
分类:其他好文   时间:2014-06-27 12:20:47    阅读次数:245
Path.Combine (合并两个路径字符串)方法的一些使用细节
System.IO.Path.Combine 简单来说,就是合并两个路径字符串。 比如如下调用,Path.Combine(@"C:\11","aa.txt") 返回的字符串路径如后: C:\11\aa.txt这个方法的声明如下: public static string Combine ( stri...
分类:其他好文   时间:2014-06-27 12:22:03    阅读次数:165
2432: [Noi2011]兔农 - BZOJ
Description农夫栋栋近年收入不景气,正在他发愁如何能多赚点钱时,他听到隔壁的小朋友在讨论兔子繁殖的问题。问题是这样的:第一个月初有一对刚出生的小兔子,经过两个月长大后,这对兔子从第三个月开始,每个月初生一对小兔子。新出生的小兔子生长两个月后又能每个月生出一对小兔子。问第n个月有多少只兔子?...
分类:其他好文   时间:2014-06-27 12:22:37    阅读次数:254
[leetcode] Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head.
分类:其他好文   时间:2014-06-27 12:26:10    阅读次数:322
[leetcode] Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
分类:其他好文   时间:2014-06-27 12:25:27    阅读次数:721
2434: [Noi2011]阿狸的打字机 - BZOJ
Description阿狸喜欢收藏各种稀奇古怪的东西,最近他淘到一台老式的打字机。打字机上只有28个按键,分别印有26个小写英文字母和'B'、'P'两个字母。经阿狸研究发现,这个打字机是这样工作的:l 输入小写字母,打字机的一个凹槽中会加入这个字母(这个字母加在凹槽的最后)。l 按一下印有'B'的按...
分类:其他好文   时间:2014-06-27 12:26:51    阅读次数:215
[leetcode] Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.
分类:其他好文   时间:2014-06-27 12:28:06    阅读次数:228
[leetcode] 3Sum
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ...
分类:其他好文   时间:2014-06-27 12:27:28    阅读次数:169
[leetcode] Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.
分类:其他好文   时间:2014-06-27 12:29:18    阅读次数:294
[leetcode] Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
分类:其他好文   时间:2014-06-27 12:30:03    阅读次数:200
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!