码迷,mamicode.com
首页 >  
搜索关键字:second    ( 4896个结果
LeetCode 412. Fizz Buzz
使用散链表的字符串连接法。 class Solution { public: vector<string> fizzBuzz(int n) { vector<string> ans; //Hash map to store all fizzbuzz mappings. map<int, string ...
分类:其他好文   时间:2020-05-30 12:43:38    阅读次数:59
匈牙利算法
匈牙利算法 #include <iostream> #include <vector> #include <cstdio> #include <cstring> #include <queue> using namespace std; #define ll long long #define pb ...
分类:编程语言   时间:2020-05-29 23:35:50    阅读次数:77
Spark Structured Streaming
###概述 Structured Streaming 是 Spark 2.0 引入的功能,有以下特点 基于 Spark SQL engine 可以直接使用 DataSet/DataFrame API,就像处理离线的批数据一样 Spark SQL engine 持续地、增量地处理流数据 支持 stre ...
分类:其他好文   时间:2020-05-29 21:22:01    阅读次数:77
.net 微信jssdk配置
/// <summary> /// 获取jssdk配置 /// </summary> /// <returns></returns> public IActionResult GetJSSDKConfig() { string appid = ""; // appid string secret = ...
分类:微信   时间:2020-05-29 11:53:33    阅读次数:89
Redis 慢查询与弱事务
慢查询 慢查询阈值及队列长度 redis.cli 127.0.0.1:6379> config get slowlog-log-slower-than 1) "slowlog-log-slower-than" 2) "10000" 127.0.0.1:6379> config get slowlog ...
分类:其他好文   时间:2020-05-28 23:14:01    阅读次数:113
Chrome自动刷新网页脚本
脚本用于在Chrome的Console内定时刷新网页 timeout=prompt("Set timeout (Second):"); count=0 current=location.href; if(timeout>0) setTimeout('reload()',1000*timeout); ...
分类:Web程序   时间:2020-05-27 18:35:28    阅读次数:175
Codeforces Round #494 (Div. 3) D. Coins and Queries (贪心,数学)
题意:给你一组全是$2^d\ (d\ge0)\(的数,询问q次,每次询问一个数,问这个数是否能够由原数组中的数相加得到,如果能,输出最少用多少个数,否则输出\)-1$. 题解:首先贪心得出结论:如果情况成立,那么最少的情况一定是优先用数组中大的数,然后我们用桶记录数组数的个数,从$inf$开始枚举, ...
分类:其他好文   时间:2020-05-27 15:19:08    阅读次数:49
axios
import axios from "axios"; axios.defaults.baseURL = "xxxxx"; // axios.changeOrigin=true; export let gethotsongs =(e) => { return request("xxxx",e,"GET ...
分类:移动开发   时间:2020-05-26 20:23:36    阅读次数:92
经典笔试题:通过JDK自带工具实现一个间隔并发执行的定时任务
通过JDK自带工具实现一个间隔并发执行的定时任务,代码如下: public class Test{ public static void main(String[] args) { ScheduledThreadPoolExecutor scheduledThreadPoolExecutor = n ...
分类:其他好文   时间:2020-05-24 21:18:52    阅读次数:82
golang mysql unexpected EOF(invalid connection)
1.问题 在使用 连接MySQL 服务过程,隔一段时间,会报MySQL连接错误: 排查下来,是由于使用无效的连接导致的。 基本场景是: client 连接MySQL,执行SQL后,不立刻关闭连接。client保留连接在连接池中。 接着,MySQL服务发生重启, 或者连接超过最大时长(由wait_ti ...
分类:数据库   时间:2020-05-24 16:49:56    阅读次数:101
4896条   上一页 1 ... 25 26 27 28 29 ... 490 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!