1 """ 2 Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. 3 Exa ...
分类:
其他好文 时间:
2020-02-12 00:58:45
阅读次数:
82
1 """ 2 Given two strings text1 and text2, return the length of their longest common subsequence. 3 A subsequence of a string is a new string generate ...
分类:
其他好文 时间:
2020-02-12 00:23:03
阅读次数:
70
题目链接 "https://leetcode cn.com/problems/sliding window maximum/" 题目内容 给定一个数组 nums,有一个大小为 k 的滑动窗口从数组的最左侧移动到数组的最右侧。你只可以看到在滑动窗口内的 k 个数字。滑动窗口每次只向右移动一位。 返回滑 ...
分类:
编程语言 时间:
2020-02-11 09:22:59
阅读次数:
79
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-s ...
分类:
Web程序 时间:
2020-02-11 00:50:24
阅读次数:
119
Canny边缘检测 使用高斯滤波器,以平滑图像,滤除噪声 计算图像中每个像素点的梯度强度和方向 应用非极大值(Non-Maximum Suppression)抑制,以消除边缘检测带来的杂散响应 应用双阈值(Double-Threshold)检测来确定真实的和潜在的边缘 双阈值检测 通过抑制孤立的弱边 ...
分类:
其他好文 时间:
2020-02-10 18:03:57
阅读次数:
103
Dec 16, 2019 ~ Dec 22, 2019 Algorithm Problem 53 Maximum Subarray 最大子数组 "题目链接" 题目描述:给定一个数组,在所有连续的子数组中,求得其中的最大值,举例如下: 数组:[ 2,1, 3,4, 1,2,1, 5,4] 返回结果:6 ...
分类:
其他好文 时间:
2020-02-09 20:29:38
阅读次数:
53
这个嘛,我觉得是m[i]=max(m[0~i-1])+1;完了复杂度是O(n^2/2); 书上开了一个辅助数组d[],就很nice,思想是如果m[i]>d[最后一个],辣么直接添加进来, 如果m[i]<d[最后一个],就让它替换掉d[]中第一个比它大的,毕竟比它大的在前面,发展显然没有它好 当然也可 ...
分类:
其他好文 时间:
2020-02-09 20:17:48
阅读次数:
60
"题目" 1349. Maximum Students Taking Exam Add to List Share Given a m n matrix seats that represent seats distributions in a classroom. If a seat is bro ...
分类:
其他好文 时间:
2020-02-09 20:01:01
阅读次数:
125
安装 Microsoft.AspNetCore.Mvc.Newtonsoft 包 在startup.cs中添加 public void ConfigureServices(IServiceCollection services) { services.AddControllers(); servic ...
分类:
Web程序 时间:
2020-02-09 16:40:42
阅读次数:
135
Link Solution 0: class Solution { public: int m,n; int maxStudents(vector<vector<char>>& seats) { m=seats.size(); n=seats[0].size(); vector<vector<int ...
分类:
其他好文 时间:
2020-02-09 16:34:09
阅读次数:
64