- 博客(5)
- 资源 (3)
- 收藏
- 关注
原创 41 最大子组数(Maximum Subarray)
给定一个整数数组,找到一个具有最大和的子数组,返回其最大和。样例给出数组[−2,2,−3,4,−1,2,1,−5,3],符合要求的子数组为[4,−1,2,1],其最大和为6class Solution {public: /** * @param nums: A list of integers * @return: A integer in
2017-03-22 15:08:23
382
原创 第七章 类 答案
7.1#include //#include #include "Sales_data.h"/* run this program using the console pauser or add your own getch, system("pause") or input loop */using namespace std;int main(){ cout << "输入数据
2017-03-06 16:09:58
673
原创 第四章 表达式
4.2 算术运算符4.3 逻辑和关系运算符4.4 赋值运算符4.5 递增和递减运算符4.6 成员访问运算符4.7 条件运算符cond ? expr1 : expr2;string finalgrade = (grade string finalgrade = (grade (grade > 90) ? "high pass" : "pass";当一条长表达式中潜逃
2017-01-08 17:08:15
377
博客文章《完成端口详解》配套代码
2019-01-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人