HEAD 一系列的你需要放在<head>标签里的东西 Elements <title>Page Title</title> <base href="https://example.com/page.html"> <style> body { color: red; } </style> <scrip ...
分类:
Web程序 时间:
2020-04-05 23:50:53
阅读次数:
87
Problem : Remove all elements from a linked list of integers that have value val. Example: 思路 : Solution (C++) : 性能 : Runtime: 44 ms Memory Usage: 10. ...
分类:
其他好文 时间:
2020-04-05 13:36:39
阅读次数:
67
要求 在链表中删除值为val的所有节点 示例 如 1->2->3->4->5->6->NULL,要求删除值为6的节点 返回1->2->3->4->5->NULL 思路 删除一般元素(包括最后一个元素) 删除第一个元素 实现 常规思路 1 #include <iostream> 2 using nam ...
分类:
其他好文 时间:
2020-04-05 09:55:01
阅读次数:
63
go.mongodb.org/mongo-driver 是mongo的golang官方包通过例子我知道连接是这样的 clientOptions := options.Client().ApplyURI("mongodb://tag:123456@127.0.0.1:27017/tag") clien ...
分类:
其他好文 时间:
2020-04-03 12:24:29
阅读次数:
110
Queue.h #pragma once #include<iostream> using namespace std; class Queue { public: int front; int rear; int maxSize; int* elements; Queue(int size=20) ...
分类:
其他好文 时间:
2020-03-31 10:45:00
阅读次数:
73
题意:求出现频率最多的 k 个元素。 分析:统计每个元素出现次数,按出现次数将元素分组,然后按频率从高到低取k个元素。 class Solution { public: vector<int> v[100010]; vector<int> topKFrequent(vector<int>& nums ...
分类:
其他好文 时间:
2020-03-30 11:15:37
阅读次数:
66
const app = document.getElementById('app'); app.innerHTML = ` <h1>JavaScript DOM</h1> <ul id="list"> <li>1</li> <li>2</li> <li>3</li> <li>4</li> </ul> ...
分类:
编程语言 时间:
2020-03-30 09:46:38
阅读次数:
79
const app = document.getElementById('app'); app.innerHTML = ` <h1>JavaScript DOM</h1> <div class="item"></div> `; const item = document.querySelector( ...
分类:
编程语言 时间:
2020-03-30 09:26:15
阅读次数:
80
源自:ITU-T Y.QKDN Arch文稿 1. General structure of QKDN Figure 1 summarizes the reference model and main elements of a QKDN and a user network based in [I ...
分类:
其他好文 时间:
2020-03-29 18:01:11
阅读次数:
68
一、什么是RDD A Resilient Distributed Dataset (RDD), the basic abstraction in Spark. Represents an immutable, partitioned collection of elements that can b ...
分类:
其他好文 时间:
2020-03-29 17:56:53
阅读次数:
80