恢复内容开始 恢复内容开始 恢复内容开始 数据库管理 Lombok插件 少写getter setter string等方法 Assert.assertNotEquals(0,result.size()); 不期望是0,期望是result.size(); ProductCategory product ...
分类:
编程语言 时间:
2020-02-13 20:49:56
阅读次数:
72
1 不管是配置什么,最好是安装react-app-rewired 这个包来对cra 创建的项目进行配置调整2 安装好之后 在package.json 里把scripts 里面的react-scripts 替换成 react-app-rewired3 在根目录下创建 config-overrides. ...
分类:
其他好文 时间:
2020-02-13 19:38:59
阅读次数:
184
"E Erase Subsequences" 参考: "Educational Codeforces Round 82 A~E 题解" 该题数据范围只有400,所以可以使用$O(n^3)$的写法。 $dp[i][j]$表示在 s 的第 i 个位置(从1开始)和 t1 的第 j 个位置,能够满足的 t ...
分类:
其他好文 时间:
2020-02-13 18:54:51
阅读次数:
57
题解【AcWing279】自然数拆分 标签(空格分隔): DP 背包 "题面" 因为题目中说参与加法运算的数可以重复,由此可以想到完全背包计数问题。 完全背包计数问题与 $01$ 背包计数问题只有一个不同: $01$ 背包计数问题的第二维循环是倒叙循环,而完全背包计数问题的第二维循环是正序循环。 这 ...
Leetcode 14 要求,编写一个函数来查找字符串组中的最长公共前缀 使用了Java语言编写,主要是利用函数indexOf和substring,从而进行比较和剪切。 ...
分类:
其他好文 时间:
2020-02-13 16:59:21
阅读次数:
59
计算机程序设计能力考试(Programming Ability Test,简称PAT)旨在通过统一组织的在线考试及自动评测方法客观地评判考生的算法设计与程序设计实现能力,科学的评价计算机程序设计人才,为企业选拔人才提供参考标准(网址http://www.patest.cn)。 每次考试会在若干个不同 ...
分类:
其他好文 时间:
2020-02-13 15:16:04
阅读次数:
206
类图 此处只截取了部分 接口 public interface View { String RESPONSE_STATUS_ATTRIBUTE = org.springframework.web.servlet.View.class.getName() + ".responseStatus"; St ...
分类:
编程语言 时间:
2020-02-13 14:51:26
阅读次数:
75
class Solution: def findAnagrams(self, s: str, p: str) List[int]: l=0 r=0 res = [] p_d = {} windows_d = {} for _ in p: p_d[_] = p_d.get(_,0)+1 while(r ...
分类:
其他好文 时间:
2020-02-13 14:38:04
阅读次数:
73
大水题,dfs判连通块的数量,bfs每个点找朋友圈的最大直径~ #include<bits/stdc++.h> using namespace std; const int maxn=1014; vector<int> g[maxn]; bool visit[maxn]; int N; int ma ...
分类:
其他好文 时间:
2020-02-13 13:20:03
阅读次数:
84
You are given a string ss. Each character is either 0 or 1. You want all 1's in the string to form a contiguous subsegment. For example, if the string ...
分类:
其他好文 时间:
2020-02-13 13:12:48
阅读次数:
61