十七

文件IO基础

文件IO基础open函数/* #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> // 打开一个已经存在的文件 int open(const char *pa

十七 Published on 2022-03-07

leetcode152. 乘积最大子数组

分析minf存储最小值,maxf存储最大值,每次最大值可能由上一个位置转化而来或者当前位置,再或者从最小值(此时为负数得情况)。class Solution {public: int maxProduct(vector<int>& nums) { vector

十七 Published on 2022-03-07
Previous Next