如有乱码,请点击。 题目背景 这是一道ST表经典题——静态区间最大值 请注意最大数据时限只有0.8s,数据强度不低,请务必保证你的每次查询复杂度为 O(1)O(1) 题目描述 给定一个长度为 NN 的数列,和 MM 次询问,求出每一次询问的区间内数字的最大值。 输入格式 第一行包含两个整数 N, M ...
分类:
其他好文 时间:
2019-11-09 13:21:30
阅读次数:
111
Hystrix 从入门到深入——运行时修改动态配置 /** * * @author zhangshuo * */ @Component public class DynamicConfigSource implements PolledConfigurationSource { private st ...
分类:
其他好文 时间:
2019-11-08 17:39:51
阅读次数:
115
public ResponseResult uploading(MultipartFile file1) throws IOException { String filename = file1.getOriginalFilename(); // 1.流读取文件 FileInputStream st ...
分类:
其他好文 时间:
2019-11-07 19:35:06
阅读次数:
109
生物信息学 Cell theory:7个要点 All known living things are made up of one or more cells. All living cells arise from pre-existing cells by division. The cell ...
分类:
系统相关 时间:
2019-11-06 13:05:16
阅读次数:
168
题目描述 Lemon觉得他需要一个复杂的密码来保证他的帐号的安全。他经过多日思考,决定使用一个长度为奇数的回文串来作为他的密码。 但是这个回文串太长了,Lemon记不住,于是Lemon决定把它记在本子上。当然直接把密码明文记录实在太愚蠢了,于是Lemon决定在记录时加入一些无意义的字符以保证密码的安 ...
分类:
其他好文 时间:
2019-11-05 13:35:44
阅读次数:
106
首先需要启动mysql源数据库 server所在服务器的路径:/opt/cm-5.14.0/etc/cloudera-scm-server 下 查看配置文件: db.properties 查看mysql源数据库配置在哪台服务器,然后去对应服务器启动mysql元数据 service mysqld st ...
分类:
其他好文 时间:
2019-11-04 19:59:08
阅读次数:
144
一. 问题描述 给定一个整数 n,生成所有由 1 ... n 为节点所组成的二叉搜索树。 示例: 输入: 3 输出: [ [1,null,3,2], [3,2,null,1], [3,1,null,null,2], [2,1,3], [1,null,2,null,3] ] 解释: 以上的输出对应以下 ...
分类:
其他好文 时间:
2019-11-04 15:11:10
阅读次数:
61
T1:陶陶摘苹果 动态维护单调栈的题 ST表维护区间最大值,把询问离线 对于每个询问,二分找到后面第一个比他大的位置得到答案 T2:开心的金明 贪心 由于对材料的储存没有限制,我们首先维护出目前最便宜的材料价格 先用最便宜的材料造出电脑 对于目前有的电脑,贪心地选择成本最小的 每次跨月贪心地把成本最 ...
分类:
其他好文 时间:
2019-11-04 13:19:36
阅读次数:
73
Adidas Star Rize-støvler og -sko er en mere sofistikeret udsmykningssortiment sammen med de ekstra Nike Jordan Jordan-støvler og -sko, samt Adidas Sta ...
分类:
其他好文 时间:
2019-11-04 09:31:38
阅读次数:
92
import java.sql.*; public class Main { // MySQL 8.0 以下版本 - JDBC 驱动名及数据库 URL static final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; static final St... ...
分类:
数据库 时间:
2019-11-03 22:14:05
阅读次数:
124