package LeetCode_547 import java.util.* /** * 547. Friend Circles * https://leetcode.com/problems/friend-circles/description/ * * There are N students ...
分类:
其他好文 时间:
2020-07-08 01:03:19
阅读次数:
71
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1024 题目大意:给m 和n个数,将n个数分为m段,不交叉,求m段和的最大值。 Sample Input 1 3 1 2 3 2 6 -1 4 -2 3 -2 3 Sample Output 6 8 em ...
分类:
其他好文 时间:
2020-07-08 00:58:59
阅读次数:
82
在vue中复制文本 项目中需要实现的功能:展示出来直播地址 超出隐藏,后面有个复制按钮,点击可以复制地址 html代码: <div> <span>{{watch_url }}</span> <div @click="copy(watch_url)" > 复制 </div> </div> JS代码: ...
分类:
其他好文 时间:
2020-07-07 22:14:13
阅读次数:
106
// OVRInput.Update(); if (OVRInput.GetUp(OVRInput.Button.Three)) { Debug.Log("remote click"); text.text = "X"; } if (OVRInput.GetUp(OVRInput.Button.Fo ...
分类:
其他好文 时间:
2020-07-07 09:57:32
阅读次数:
175
表单校验: 技术分析: 确定事件:表单提交时 onsubmit 文本框失去焦点时 onblur 编写元素 获取元素 document.getElementById("id值") 操作元素(获取元素值,操作标签体,操作标签的value属性) <html> <head> <meta charset="U ...
分类:
其他好文 时间:
2020-07-06 16:03:14
阅读次数:
52
ELK简介1.ElasticSearch简称ES,它是一个实时的分布式搜索和分析引擎,它可以用于全文搜索,结构化搜索以及分析。它是一个建立在全文搜索引擎ApacheLucene基础上的搜索引擎,使用Java语言编写。2.Logstash是一个具有实时传输能力的数据收集引擎,用来进行数据收集(如:读取文本文件)、解析、过滤,并将数据发送给ES。3.Kibana为Elasticsearch提供了分析和
分类:
其他好文 时间:
2020-07-06 01:15:14
阅读次数:
52
本文主要介绍Java中,使用ByteArrayOutputStream和ByteArrayInputStream、IOUtils.toBufferedInputStream复制克隆(clone)InputStream的几种方法,以及相关的示例代码。 原文地址:https://www.cjavapy. ...
分类:
编程语言 时间:
2020-07-05 21:20:17
阅读次数:
95
Algorithm: 70: Climbing Stairs (Easy) 167: Two Sum II - Input array is sorted (Easy) 120: Triangle (Medium) 经典动态规划,状态转移方程是自底向上,row[i] = row[i] + min(p ...
分类:
其他好文 时间:
2020-07-05 17:18:19
阅读次数:
70
前提:在我的项目中我使用的是ElementUi前端UI框架,用到的是里面的Upload上传组件。 第一步:需要安装三个依赖 npm install -S file-saver xlsx (这里其实安装了2个依赖) npm install -D script-loader 第二步:在main.js文件 ...
分类:
其他好文 时间:
2020-07-05 15:30:33
阅读次数:
331
实现的话主要是根据特征方程 module JK_FF( clk, rst_n, J, K, Q ); input clk; input rst_n; input J; input K; output reg Q; always@(posedge clk or negedge rst_n) begin ...
分类:
其他好文 时间:
2020-07-05 12:04:27
阅读次数:
107