Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may a ...
分类:
其他好文 时间:
2019-04-09 18:42:24
阅读次数:
148
"$\verb|bzoj4892 [TJOI2017]DNA|$" 给定一个匹配串和一个模式串,求模式串有多少个连续子串能够修改不超过 $3$ 个字符变成匹配串 $len\leq10^5$ hash 枚举子串左端点,hash 求 lcp 枚举断点,接着跳过断点,记作一次修改,最多修改 $3$ 次。特 ...
分类:
其他好文 时间:
2019-04-06 14:18:08
阅读次数:
115
iptables 设置端口转发/映射 服务器A有两个网卡 内网ip:192.168.1.3 外网ip:10.138.108.103 本地回环:127.0.0.1 服务器B有网卡,8001提供服务 内网ip:192.168.1.1 目的使用户通过外网10.138.108.103:8001访问内网服务器 ...
分类:
其他好文 时间:
2019-04-05 00:38:48
阅读次数:
204
前端面试题汇总 1. 谈谈你对MVVM开发模式的理解 MVVM分为Model、View、ViewModel三者。 1)Model:代表数据模型,数据和业务逻辑都在Model层中定义; 2)View:代表UI视图,负责数据的展示; 3)ViewModel:负责监听Model中数据的改变并且控制视图的更 ...
分类:
其他好文 时间:
2019-04-03 16:47:09
阅读次数:
185
这是悦乐书的第 289 次更新,第 307 篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第156题(顺位题号是686)。给定两个字符串A和B,找到A必须重复的最小次数,使得B是它的子字符串。 如果没有这样的解决方案,返回 1。例如: 输入:A =“abcd”,B =“ ...
分类:
编程语言 时间:
2019-03-28 00:19:59
阅读次数:
141
import java.lang.reflect.Method; import javax.servlet.http.HttpServletRequest; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.A... ...
分类:
编程语言 时间:
2019-03-27 10:55:16
阅读次数:
168
import logging import os import datetime if __name__ == '__main__': level = logging.INFO log_filename = "D:/log/log_%s.log" try: if not os.path.exists... ...
分类:
编程语言 时间:
2019-03-19 16:41:03
阅读次数:
149
很典型的数位dp,把全球第一的代码拿过来研究了一下,加了点注释 代码作者:waakaaka 个人主页:https://leetcode.com/waakaaka/ ...
分类:
其他好文 时间:
2019-03-17 21:32:52
阅读次数:
174
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Sunlib; using System.Net; using System.IO; using System.We ...
分类:
Web程序 时间:
2019-03-15 19:10:12
阅读次数:
354