Maximum width 给定字符串S和T,保证T是S的子序列,求解T在S中对应位置相邻的两个之间距离的最大值。 考虑直接贪心,对于位置i和 i+1,让1到i的子串从前向后匹配,i+1到m的子串从后向前匹配,这样就能让左端点尽量靠左,右端点尽量靠右,距离就是最大的。具体实现可以计算出每个匹配的位置 ...
分类:
其他好文 时间:
2021-03-09 13:13:07
阅读次数:
0
package com.app.frame.ldap; import java.util.Enumeration;import java.util.Hashtable; import javax.naming.Context;import javax.naming.NamingEnumeration ...
分类:
编程语言 时间:
2021-03-08 13:05:28
阅读次数:
0
1-1. var let const 区别 var 是es5语法,有变量提升 let const是es6语法, 有块级作用域 var let 是变量,可修改;cosnt是常量,不可修改 2-1. typeof返回哪些类型 值类型:undefined string number boolean sym ...
分类:
其他好文 时间:
2021-03-08 13:04:03
阅读次数:
0
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we c ...
分类:
其他好文 时间:
2021-03-06 14:47:20
阅读次数:
0
组件传参 散记点(父传子) v-bind传入Number,Function,Object等类型 <mycomponent :count="100" :data="{name: "wise"}" :list="['foo','bar']" :action="() => {}"/> 传递组件,组件变量形 ...
分类:
其他好文 时间:
2021-03-06 14:19:47
阅读次数:
0
Given an array of integers nums and an integer target. Return the number of non-empty subsequences of nums such that the sum of the minimum and maximu ...
分类:
其他好文 时间:
2021-03-03 12:23:05
阅读次数:
0
MyFlash工具是美团开发的一个开源辅助性工具,主要用来恢复数据(误删删除是每个DBA比较头疼的事情) MyFlash的安装和使用 下载地址:https://github.com/Meituan-Dianping/MyFlash 1.环境说明: 1)本机是centos7.x 2)mysql5.7. ...
分类:
其他好文 时间:
2021-03-03 12:15:57
阅读次数:
0
NMS即non maximum suppression即非极大抑制,顾名思义就是抑制不是极大值的元素,搜索局部的极大值。在最近几年常见的物体检测算法(包括rcnn、sppnet、fast-rcnn、faster-rcnn等)中,最终都会从一张图片中找出很多个可能是物体的矩形框,然后为每个矩形框为做类 ...
分类:
其他好文 时间:
2021-03-02 12:11:59
阅读次数:
0
环境:ubuntu-server18.4 with desktop installed 问题:安装ubuntu之后启动系统网卡没有自动启动,然后我就在 /etc/netplan/xxxx-netcfg.yaml文件下面加上了下面的信息: ethernets: ens33: dhcp4: true d ...
分类:
Web程序 时间:
2021-03-02 11:45:10
阅读次数:
0
description: There are two strings \(a\), \(b\) with the length \(n\), and \(m\). Find the Array <\(p_1, p_2, ..., p_m>\), such that \(a_{p_i}= b_i\), ...
分类:
其他好文 时间:
2021-03-01 13:26:32
阅读次数:
0