B17090 B01608 B02442 B17419 B13647 B16491 B32295 B18484 B23507 B23062 B25106 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 B20715 B02253...
using namespace std; // 双重循环,一个代表起点,一个代表终点,该算法性能较差 //class Solution //{ // public: // int maxArea(vector<int>& height) // { // int len = height.size(); // int max_cap = 0; // int max_i = 0; // 限制起点大小 // int max_j = 0; // 限制终点...
首先用单重循环实现,时间20秒,原谅我贴出来测试代码居然这么长。 #include<iostream> #include<vector> using namespace std; class Solution{ public: int maxArea(vector<int> &height){ int left=0,right=height.size()-1,maxarea=0,currarea=0,currheight; while(left<right){ currheight = height[left...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
Unofficial FFmpeg with added custom native Visual Studio project build tools. FFmpeg: A complete, cross-platform solution to record, convert and stream audio and video. - FFmpeg/libavcodec/dcadata.h at 3d37b11f92f05b72a4f9fd024f891ec65ad68169 · wwwxxxww