码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle ii    ( 7733个结果
hdu1027 Ignatius and the Princess II 全排列
STL中的神器next_permutation和prev_permutation函数 全排列...
分类:其他好文   时间:2014-06-24 22:41:03    阅读次数:271
LeetCode: Best Time to Buy and Sell Stock II [122]
【题目】 Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy one and sell one share of the stock multiple times). H...
分类:其他好文   时间:2014-06-24 19:40:53    阅读次数:240
leetcode--Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:其他好文   时间:2014-06-24 18:56:54    阅读次数:240
Remove Duplicates from Sorted List II [详细分析]
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3->4->4->5, return 1->2->5. Given 1->1-...
分类:其他好文   时间:2014-06-22 22:57:49    阅读次数:347
Pascal's Triangle
Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5, Return [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ] 解题思路: 杨辉三角没什么好说的...
分类:其他好文   时间:2014-06-22 22:48:11    阅读次数:305
关于TRIANGLE二维三角网格生成器在windows下的配置说明
最近需要用到三角网格生成的一些东西,所以就把TRIANGLE这个库编译了一下,发现编译过程还是稍微有些纠结,于是就想到写下来,希望以后有些童鞋看到少走一些弯路。      首先非常感谢eryar的帮助,非常感谢!      在编译之前还是先看一下eryar的博文:      http://www.cnblogs.com/opencascade/p/3632705.html      我是在...
分类:Windows程序   时间:2014-06-22 18:54:18    阅读次数:452
LeetCode:Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [2],...
分类:其他好文   时间:2014-06-22 17:07:52    阅读次数:166
leetcode - Unique Binary Search Trees II
题目:Unique Binary Search Trees IIGivenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your...
分类:其他好文   时间:2014-06-22 13:49:21    阅读次数:243
LeetCode:N-Queens I II(n皇后问题)
N-QueensThe n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, retu...
分类:其他好文   时间:2014-06-22 13:10:11    阅读次数:188
Codeforces 346C Number Transformation II 构造
题目链接:点击打开链接 = = 990+ms卡过 #include #include #include #include #include #include using namespace std; #define N 100010 #define L(x) (x<<1) #define R(x) (x<<1|1) #define ll int ll n,m,k,a,b; ll x[N]; b...
分类:其他好文   时间:2014-06-22 08:16:57    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!