码迷,mamicode.com
首页 >  
搜索关键字:max the curse of brotherhood    ( 23668个结果
mysql5.7社区版性能优化浅谈
最大连接数 show variables like '%max_connections%'; 最大连接数 对于并发编程了解过的人知道,这个151不是越大越好,一般来说设置为 最大连接数 = cpu X 2 会比较合适, 因为受 IO 影响,连接数越大,反而越会占用IO,所以设置过大也可能导致性能降低 ...
分类:数据库   时间:2021-06-02 15:17:51    阅读次数:0
leetcode 198 打家劫舍
简介 看到这种题目立即推, 动态规划. 但是我列出的不是特别好的公式, 提供自己的公式和官方的公式. res 是 自己创建的动态规划数组. nums[i] 我这里是都会选择nums[i], 但是会递推前面两个. for(int i=2; i<nums.size(); i++){ for(int j ...
分类:其他好文   时间:2021-06-02 14:34:27    阅读次数:0
vue+element给el-table头部换背景颜色
亲测有效 直接上代码: :header-cell-style="{background:'#eef1f6',color:'#606266'}" <el-table ref="commonTable" :data="dataSource" :max-height="tableHeight" @sele ...
分类:其他好文   时间:2021-06-02 14:23:53    阅读次数:0
CF1509C The Sports Festival
原题链接 题意:每次加一个数,要求最小 $\sum max_ - min_, 题解:本来以为就是纯贪心,然后发现竟然是区间dp,就是先排完序,然后就加入然后取 \(min\)。 代码: #include <iostream> #include <bits/stdc++.h> using namesp ...
分类:其他好文   时间:2021-06-02 13:04:14    阅读次数:0
贪心算法:摆动序列
376. 摆动序列 如果连续数字之间的差严格地在正数和负数之间交替,则数字序列称为摆动序列。第一个差(如果存在的话)可能是正数或负数。仅有一个元素或者含两个不等元素的序列也视作摆动序列。 例如,[1, 7, 4, 9, 2, 5]是一个 摆动序列 ,因为差值(6, -3, 5, -7, 3)是正负交 ...
分类:编程语言   时间:2021-06-02 12:55:58    阅读次数:0
springboot配置信息
springboot相关的配置信息: server.tomcat.max-connections = 2000 server.tomcat.accept-count = 100 server.tomcat.max-threads = 200 上面三个配置理解请看:https://www.cnblog ...
分类:编程语言   时间:2021-06-02 12:39:50    阅读次数:0
AVL树, 平衡二叉搜索树, 平衡二叉树
#include <stdio.h> #include <stdlib.h> #include <time.h> #define max(a, b) ((a) > (b) ? (a) : (b)) typedef struct Node { int key, height; struct Node ...
分类:其他好文   时间:2021-06-02 12:24:05    阅读次数:0
MLE 与MAP
MLE(极大似然估计)与MAP(最大后验估计)在机器学习中是经常用到的参数估计的方法。都属于频率学派的参数估计。 一、极大释然估计(MLE) MLE在构造目标函数过程中非常常见。已知了观测的样本值为$D$,MLE核心思想是:假设我们已知了该样本内定的一个参数$\theta$,这个参数$\theta$ ...
分类:其他好文   时间:2021-06-02 11:21:36    阅读次数:0
logstash报错如下:Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [999]/[1000] maximum shards open
超过最大分片引起的,在es机器上执行:curl -XPUT -H "Content-Type:application/json" -d '{"persistent":{"cluster":{"max_shards_per_node":10000}}}' 'http://es-host:9200/_c ...
分类:其他好文   时间:2021-05-25 17:41:51    阅读次数:0
O(logn)最长上升子序列并输出
O(logn)最长上升子序列并输出 +++ pre数组记录转移。 #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int N = 1e6 ...
分类:其他好文   时间:2021-05-25 17:36:48    阅读次数:0
23668条   上一页 1 ... 5 6 7 8 9 ... 2367 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!