码迷,mamicode.com
首页 >  
搜索关键字:triangle    ( 1341个结果
不借助第三者变量值的互换
import java.util.Scanner;public class Triangle { public static void main(String[] args){ Scanner scan=new Scanner(System.in);//创建扫描器 Syst...
分类:其他好文   时间:2015-05-18 22:47:27    阅读次数:149
杨辉三角
public class Triangle{ public static void main(String[] args){ int triangle[][]=new int[10][]; for(int i=0;i<triangle.length;i++){ ...
分类:其他好文   时间:2015-05-18 22:43:12    阅读次数:147
加密解密
import java.util.Scanner;public class Triangle { public static void main(String[] args){ Scanner scan=new Scanner(System.in);//创建扫描器 Sys...
分类:其他好文   时间:2015-05-18 22:30:14    阅读次数:137
Triangle -- leetcode
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], [3,4], [...
分类:其他好文   时间:2015-05-17 18:51:14    阅读次数:100
动态规划习题--九章算法第五、六章习题
1.TriangleGiven 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, gi...
分类:编程语言   时间:2015-05-17 18:19:11    阅读次数:187
Pascal's Triangle II -- leetcode
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 use only O(k) extra space? 基本思路: 内层循环,使用...
分类:其他好文   时间:2015-05-17 16:51:36    阅读次数:111
Pascal's Triangle -- leetcode
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] ] 基本思路: 每行比上行多一个元素。 每行第一列和...
分类:其他好文   时间:2015-05-17 15:18:43    阅读次数:121
UVA 11178-Morley's Theorem(计算几何_莫雷定理)
Problem D Morley’s Theorem Input: Standard Input Output: Standard Output  Morley’s theorem states that that the lines trisecting the angles of an arbitrary plane triangle meet at the vertices of a...
分类:其他好文   时间:2015-05-16 18:25:36    阅读次数:124
【Leetcode】【Medium】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...
分类:其他好文   时间:2015-05-16 06:45:28    阅读次数:126
leetcode120-Triangle
1 class Solution { 2 public: 3 int minimumTotal(vector > &triangle) { 4 vector> temp(triangle); 5 vector>::size_type length=temp....
分类:其他好文   时间:2015-05-15 22:41:34    阅读次数:146
1341条   上一页 1 ... 87 88 89 90 91 ... 135 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!