码迷,mamicode.com
首页 > 其他好文
Container With Most Water <leetcode>
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:其他好文   时间:2014-09-06 23:43:44    阅读次数:209
编程之美-最短摘要
这个主要注意几点:首先,str[i]-str[j]包含keyword里面的所有词语,但是不要求顺序相同,然后,str[i]-str[j]是所有满足这样要求的最短子串。主要方法是:dequestore:记录当前摘要的所有单词在str中的下标,maprecord记录所有当前摘要中出现的次数。min_le...
分类:其他好文   时间:2014-09-06 23:43:34    阅读次数:211
了解基础Ajax
ajax 的全称是Asynchronous JavaScript and XML,其中,Asynchronous 是异步的意思,它有别于传统web开发中采用的同步的方式。例图:Ajax工作原理图与web工作原理图1、关于同步和异步同步需要等待返回结果才能继续,异步不必等待,一般需要监听异步的结果同步...
分类:其他好文   时间:2014-09-06 23:42:34    阅读次数:336
[转发]UML类图符号 各种关系说明以及举例
UML中描述对象和类之间相互关系的方式包括:依赖(Dependency),关联(Association),聚合(Aggregation),组合(Composition),泛化(Generalization),实现(Realization)等。依赖(Dependency):元素A的变化会影响元素B,但...
分类:其他好文   时间:2014-09-06 23:42:24    阅读次数:292
(翻译)网络安全书籍推荐列表
看到作者列出的书籍列表,对于信息安全的初学者来说,能很好的选择教材,鉴于只有英文版,我尝试翻译成中文以供参考,初次翻译,翻译的不好请见谅。原文链接:http://dfir.org/?q=node/8/注:对于所有的书籍链接,我都会寻找中文版重新链接,如无中文版,则按原文链接英文版。并且所有书籍名称保...
分类:其他好文   时间:2014-09-06 23:42:14    阅读次数:548
Non-terminating decimal expansion; no exact representable decimal result(转)
Non-terminating decimal expansion; no exact representable decimal result - lopper的专栏 - 博客频道 - CSDN.NET http://blog.csdn.net/lopper/article/details/531...
分类:其他好文   时间:2014-09-06 23:41:44    阅读次数:223
select的使用
select函数对数据结构fd_set进行操作,fd_set是一个bitmap,该集合由打开的文件描述符构成。对于管道而言,select是通过检查管道是否阻塞,来进行监听的。只要所监听的管道非阻塞,select就能立马获知,并将其在fd_set中的相应为置1。管道非阻塞只有两种情况,一种是客户端向管...
分类:其他好文   时间:2014-09-06 23:41:24    阅读次数:263
Unity3D音乐音效研究-MIDI与波表
其实音乐音效这个命题本身没什么好研究的。 Unity3D提供了丰富的结构和使用方式,足够使用了。 但是我有一些小小的想法和需求,一般的Unity资料并没有给我答案。 一个是容量要小。MP3、OGG的高音质压缩一分钟一M多,多放几首背景音乐就顶不住了。 一个是资源和主程序分离,方便更新,别和我提Ass...
分类:其他好文   时间:2014-09-06 23:41:04    阅读次数:297
红黑树
Left-Leaning Red-Black Trees,Dagstuhl Workshop on Data Structures, Wadern, Germany, February, 2008,直接下载:http://www.cs.princeton.edu/~rs/talks/LLRB/Red...
分类:其他好文   时间:2014-09-06 23:40:34    阅读次数:425
SRM632 Div2 1000 DP
【题意】:给你一个值v和一组数字,求在这组数字中有多少种可用的组合,可用的组合意思是组合中数字乘积等于这个v(不同位置的数组成的相同情况视为不同的解)。【知识点】:DP【题解】:声明map mp; 第一个元素代表能整除v的一个数,第二个元素代表数字组前i个元素中乘积为该数的集合数。然后遍历这组数字,...
分类:其他好文   时间:2014-09-06 23:40:24    阅读次数:259
判断两个矩形是否相交
说矩形相交算法之前,先看下如何判断两条线段是否相交 如果有两条线段 [a, b],[c, d](a, b, c, d 为 X 轴坐标点),有下面两种不相交的情况: 1)b < c 时,线段 [a, b] 在 [c, d] 的左边不相交 2)d < a 时,线...
分类:其他好文   时间:2014-09-06 22:38:34    阅读次数:397
leetcode 之 Distinct Subsequences
Distinct Subsequences Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed from the original string b...
分类:其他好文   时间:2014-09-06 22:37:44    阅读次数:208
如何学习设计模式
GoF的[设计模式]是经典著作,有人看了好多遍仍然说没有看懂,许多人看懂了一些模式但不知道如何应用……这里,yqj2065抛砖引玉,讨论一下如何学习设计模式。...
分类:其他好文   时间:2014-09-06 22:37:34    阅读次数:326
每日算法之四十四:Unique Path(矩阵中不重复路径的数目)
Unique Paths: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any point in time. The robot is t...
分类:其他好文   时间:2014-09-06 22:37:14    阅读次数:246
Leetcode dfs Binary Tree Postorder Traversal II
Sudoku Solver  Total Accepted: 11752 Total Submissions: 56537My Submissions Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character...
分类:其他好文   时间:2014-09-06 22:37:04    阅读次数:244
HDU 4403 A very hard Aoshu problem(DFS+暴力)
HDU 4403 A very hard Aoshu problem(DFS+暴力)...
分类:其他好文   时间:2014-09-06 22:36:44    阅读次数:235
POJ 3522 Slim Span
Given an undirected weighted graph G , you should find one of spanning trees specified as follows. The graph G is an ordered pair (V, E) , where V is a set of vertices {v1, v2,..., vn} and E is a...
分类:其他好文   时间:2014-09-06 22:36:34    阅读次数:358
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!