码迷,mamicode.com
首页 >  
搜索关键字:note    ( 7358个结果
Pascal's Triangle II Leetcode java
题目:Given an index k, return the kth row of the Pascal's triangle.For example, given k = 3,Return [1,3,3,1].Note:Could you optimize your algorithm to ....
分类:编程语言   时间:2014-08-03 05:24:06    阅读次数:304
Note:上下界网络流的理解
无源汇可行流弧流量限制条件 b(u,v)<=f(u,v)<=c(u,v),(u,v)∈E不妨设f(u,v)=b(u,v)+f1(u,v),Σ( b(u,v)+f1(u,v) ) = Σ( b(v,w)+f1(v,w) )Σ b(u,v) - Σ b(v,w) = Σf1(v,w) -Σf1(u,v)...
分类:其他好文   时间:2014-08-02 17:59:23    阅读次数:180
Single Number II
Single Number II Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?...
分类:其他好文   时间:2014-08-02 12:53:53    阅读次数:289
Subsets
Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets. For exa...
分类:其他好文   时间:2014-08-01 23:18:42    阅读次数:246
jquery data方法
jquery.data()文档:http://api.jquery.com/jQuery.data/html5有个data-*属性,跟这个功能一样。Note:This is a low-level method; a more convenient.data()is also available.T...
分类:Web程序   时间:2014-08-01 22:43:22    阅读次数:351
[leetcode]Anagrams
AnagramsGiven an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.编程珠玑中的一道题,书中的解法很巧妙,我就直接搬来用了,时...
分类:其他好文   时间:2014-08-01 22:37:32    阅读次数:162
【LeetCode】Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. /** * Definition for binary tree * struct TreeNode {...
分类:其他好文   时间:2014-08-01 19:53:32    阅读次数:222
矩阵相加
/* Note:Your choice is C IDE */ #include "stdio.h" #include #include #define N 4 void main() { int a[N][N]; int b[N][N]; int z,x,c,d,p,i,j; for(c=0;c<N;c++) srand(time(0)); a[...
分类:其他好文   时间:2014-08-01 19:48:02    阅读次数:195
Leetcode--Anagrams
Problem Description: Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. 分析:题目要求输出找出所有在字符串数组中的变形词,变形词的意思是指单词由相同的字母构成,只是字母在单词中的顺序...
分类:其他好文   时间:2014-08-01 16:09:01    阅读次数:164
Leetcode--Multiply Strings
Problem Description: Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative. 分析:两个string相乘...
分类:其他好文   时间:2014-08-01 16:06:01    阅读次数:141
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!