题目描述链接:https://leetcode-cn.com/problems/longest-common-subsequence/ 解题思路:经典的LCS最长公共子序列问题:使用动态规划进行解题, (1)状态标识dp[i][j]标识text1[0]到text1[i-1]与text2[0]到tex ...
分类:
其他好文 时间:
2020-07-29 21:54:41
阅读次数:
78
判断一个 9x9 的数独是否有效。只需要根据以下规则,验证已经填入的数字是否有效即可。 数字 1-9 在每一行只能出现一次。 数字 1-9 在每一列只能出现一次。 数字 1-9 在每一个以粗实线分隔的 3x3 宫内只能出现一次。 下面是Rust测试用的数组,可以复制过去。 let vec: Vec< ...
分类:
其他好文 时间:
2020-07-29 14:56:05
阅读次数:
55
Motivation The task of finding nearest neighbours is very common. You can think of applications like finding duplicate or similar documents, audio/vid ...
分类:
其他好文 时间:
2020-07-29 10:07:50
阅读次数:
68
A. Common Prefixes 题目链接 代码: #include<bits/stdc++.h> using namespace std; const int maxn = 1e6 + 10; #define ll long long #define ios std::ios::sync_wi ...
分类:
其他好文 时间:
2020-07-29 09:52:41
阅读次数:
58
编写一个函数来查找字符串数组中的最长公共前缀。 如果不存在公共前缀,返回空字符串 ""。 示例: 输入: ["flower","flow","flight"] 输出: "fl" ##思路 将单词上下排好,则相当于一个各行长度可能不同的二维数组,采用纵向遍历。外围循环为横向遍历,遍历次数由最短单词长度 ...
分类:
其他好文 时间:
2020-07-28 22:25:57
阅读次数:
72
Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal. Example 1: Input: s1 = "sea", s2 = "eat" Output: ...
分类:
其他好文 时间:
2020-07-28 14:45:21
阅读次数:
310
1、卸载旧版本(如果安装过旧版本的话) sudo yum remove docker docker-common docker-selinux docker-engine 2、安装需要的软件包 yum install -y yum-utils device-mapper-persistent-dat ...
分类:
其他好文 时间:
2020-07-28 14:18:19
阅读次数:
83
cifs协议是windows与linux系统之间文件共享的一种协议,其中代表的软件是samba。cifs全称是common internet file system通用互联网文件系统协议。 linux服务端samba主程序包samba [root@x160 ~]# yum install -y sa ...
分类:
其他好文 时间:
2020-07-28 13:51:03
阅读次数:
101
思路: 第一步:在公共的css文件里面设置class类名,并添加要修改得样式。 第二步:在要修改控制的组件里,生命周期mounted中给要修改样式的DOM添加class类名。(此步可能涉及到异步。) 具体实现:common.css ...
分类:
其他好文 时间:
2020-07-27 17:44:13
阅读次数:
73
发送请求是跳过证书 package com.yurun.micro.common.third.ding; import okhttp3.OkHttpClient; import javax.net.ssl.*; /** * okhttp ssl证书解决 * @author dll * @create ...
分类:
编程语言 时间:
2020-07-27 15:48:27
阅读次数:
80