题意:给定一个长度为n的序列,可以修改任何一个字符,求修改后最长的单调严格上升子序列(必须是连续的)。 分析:\((1 <= n < 10^5)\),数据范围很大,不能使用$o(n^2)$的算法。所以我们可以从线性角度考虑,一种常见的套路是枚举修改点,然后求最大值。我们只需要分别求出两端的情况即可, ...
分类:
其他好文 时间:
2020-07-15 23:25:08
阅读次数:
90
# Copyright 2017 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in com ...
分类:
其他好文 时间:
2020-07-15 23:06:39
阅读次数:
144
Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots - they ...
分类:
其他好文 时间:
2020-07-15 01:29:00
阅读次数:
68
Given an array nums with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element. We define an array is non ...
分类:
其他好文 时间:
2020-07-15 01:12:51
阅读次数:
60
Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte ...
分类:
其他好文 时间:
2020-07-15 01:00:03
阅读次数:
73
YOLOv4: Optimal Speed and Accuracy of Object Detection 摘要 深度学习发展至今,依据产生了许多优秀的技术。其中一些技术对特定的数据集或小数据集有着良好的表现;而有一些技术拥有着普遍的适用性,在各个领域、各种架构都有着非常好的性能提升表现,如: b ...
分类:
其他好文 时间:
2020-07-14 18:07:20
阅读次数:
62
VS2019下载地址 社区版 https://visualstudio.microsoft.com/zh-hans/thank-you-downloading-visual-studio/?sku=Community&rel=16 专业版 https://visualstudio.microsoft ...
分类:
其他好文 时间:
2020-07-14 16:26:32
阅读次数:
167
To install it, you can run: npm install --save fs fs包已安装,报错如下: fs in ./~/_vue-server-renderer@2.5.16@vue-server-renderer/build.js, ./~/_resolve@1.7.1@ ...
分类:
微信 时间:
2020-07-14 16:25:52
阅读次数:
102
(1)if 从句是一种虚拟的条件或假设,和现在事实相反的。主从句时态具体如下: 从句: 动词过去式(be 用 were)无论主语是不是单数,都用were 主句:would / could / should / might + 动词原形 所以句型应该是 : ... were... , ...would ...
分类:
其他好文 时间:
2020-07-14 13:45:40
阅读次数:
58
This week we are reading about the beginnings of Islam, and the simultaneous expansion of Christianity in the West. You may notice that the two overla ...
分类:
其他好文 时间:
2020-07-14 13:02:46
阅读次数:
101