码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle ii    ( 7733个结果
Reverse Linked List II
题目 Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2->5->NULL. Note: Given m,...
分类:其他好文   时间:2014-06-11 06:07:11    阅读次数:392
Unique Paths II
题目 Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1 and 0 respective...
分类:其他好文   时间:2014-06-10 18:28:49    阅读次数:207
ACM-卡特兰数之Train Problem II——hdu1023
ACM 卡特兰数 Train Problem II hdu1023 大数乘法(存五位数)...
分类:其他好文   时间:2014-06-10 15:51:06    阅读次数:179
虚函数-计算图形面积
Problem B: C++习题 虚函数-计算图形面积 Description 编写一个程序,定义抽象基类Shape,由它派生出5个派生类: Circle(圆形)、Square(正方形)、Rectangle(矩形)、Trapezoid(梯形)、Triangle(三角形)。 用虚函数分别计算几种图形面积,并求它们之和。 要求用基类指针数组,使它每一个元素指向一个派生类对象。  ...
分类:其他好文   时间:2014-06-10 15:07:53    阅读次数:286
抽象基类
Problem A: C++习题 抽象基类 Description 编写一个程序,声明抽象基类Shape,由它派生出3个派生类: Circle(圆形)、Rectangle(矩形)、Triangle(三角形),用一个函数printArea分别输出以上三者的面积(结果保留两位小数),3个图形的数据在定义对象时给定。 Input 圆的半径 矩形的边长 三角...
分类:其他好文   时间:2014-06-10 14:32:52    阅读次数:170
poj 2536 Gopher II (二分匹配)
Gopher IITime Limit:2000MSMemory Limit:65536KTotal Submissions:6345Accepted:2599DescriptionThe gopher family, having averted the canine threat, must f...
分类:其他好文   时间:2014-06-10 10:30:00    阅读次数:218
LeetCode OJ - Reverse Linked List II
题目:Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL...
分类:其他好文   时间:2014-06-09 23:03:18    阅读次数:254
Welcome to Swift (苹果官方Swift文档初译与注解五)---29~34页
在Swift中,类的成员变量(属性)如果不需要计算,但又想在给它赋一个新值之前(或者之后)执行一段代码,可以使用willSet 和 didSet来处理.例如下面的代码样例,三角形(triangle)的边长总是与四边形(square)的边长相同. class TriangleAndSquare { ....
分类:移动开发   时间:2014-06-09 20:33:49    阅读次数:262
[leetcode]Combination Sum II @ Python
原题地址:https://oj.leetcode.com/problems/combination-sum-ii/题意:Given a collection of candidate numbers (C) and a target number (T), find all unique combi...
分类:编程语言   时间:2014-06-09 17:41:58    阅读次数:320
支持ZPLor ZPL 语言仿真程序的打印机的条码控件ThermalLabel SDK
ThermalLabel SDK for .NET 条形码控件是一个用VB.NET或C#开发的纯.NET的一个类库(DLL), 可用该组件来设计条码并在Zebra Thermal Printer(任何支持ZPL? or ZPL II? 语言/仿真程序的打印机)上打印这些条码。ThermalLabel...
分类:其他好文   时间:2014-06-09 16:46:36    阅读次数:334
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!