#include #include typedef struct node { int data; struct node *next; }linkList; int linkList_init(linkList **list) { (*list) = (linkList *)malloc(size... ...
分类:
其他好文 时间:
2017-03-09 00:37:47
阅读次数:
151
C# 基本语法 C# 是一种面向对象的编程语言。在面向对象的程序设计方法中,程序由各种相互交互的对象组成。相同种类的对象通常具有相同的类型,或者说,是在相同的 class 中。 例如,以 Rectangle(矩形)对象为例。它具有 length 和 width 属性。根据设计,它可能需要接受这些属性 ...
class Solution {public: /** * @param n: An integer * @return: An integer */ int climbStairs(int n) { // write your code here // write your code herein ...
分类:
其他好文 时间:
2017-03-09 00:32:46
阅读次数:
133
在这一讲中有几个很重要的地方需要注意: 1.在查询帖子的时候需要把帖子类型id带到帖子类型表中把类型查询出来 2.在字帖子查询语句中用limt限制查询那个阶段的帖子 3.在界面显示的时候需要用到字符串截取标签和日期时间标签 2.代码实现 2.1创建帖子类: package com.open1111. ...
分类:
其他好文 时间:
2017-03-09 00:19:32
阅读次数:
284
此问题可以分解为:当一个值确定,判断剩余的数中是否存在两个和为此数 需要检测完全 ...
分类:
其他好文 时间:
2017-03-09 00:03:52
阅读次数:
180
class Solution { public: /** * @param n: An integer * @return: An integer */ int climbStairs(int n) { // write your code here if(n == 0) return 1; if(... ...
分类:
其他好文 时间:
2017-03-08 23:11:55
阅读次数:
200
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1024 题目大意: 求n个数分成m个子区间的最大和 推导过程已写在代码中 ...
分类:
其他好文 时间:
2017-03-08 23:11:39
阅读次数:
206
class Solution {public: /** * @param prices: Given an integer array * @return: Maximum profit */ int maxProfit(vector<int> &prices) { // write your co ...
分类:
编程语言 时间:
2017-03-08 23:10:34
阅读次数:
183
class Solution { public: /** * @param prices: Given an integer array * @return: Maximum profit */ int maxProfit(vector &prices) { // write your code h... ...
分类:
其他好文 时间:
2017-03-08 23:02:18
阅读次数:
142
class Solution { public: /** * @param prices: Given an integer array * @return: Maximum profit */ int maxProfit(vector<int> &price) { int re = 0; if(p ...
分类:
其他好文 时间:
2017-03-08 22:59:21
阅读次数:
187