1.主题插件 经多个主题使用,最终使用Solarized Dark,还是有部分改动,在setting文件中自定义部分颜色, "[Solarized Dark]": { "functions": "#d8ca04dc", "types": "#08c48cfd", "comments": "#5ed1 ...
分类:
其他好文 时间:
2020-07-16 21:23:26
阅读次数:
56
1、定义pair容器 1 pair <int, int> p, p1; 2 //定义 [int,int] 型容器 //直接初始化了p的内容 pair<string,int>p(1,5); 定义一个pair类型数组 pair<int,int> p1[maxn] 2、交换函数 //p和p1都是pair容 ...
分类:
其他好文 时间:
2020-07-15 22:52:19
阅读次数:
52
Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte ...
分类:
其他好文 时间:
2020-07-15 01:00:03
阅读次数:
73
概念 字典,又称为符号表、关联数组或映射(map),是一种用于保存键值对(key-value pair)的抽象数据结构。字典中每个键都是独一无二的,程序可以根据键来更新值,或者删除整个键值对。 用途 Redis的数据库就是使用字典来作为底层实现 字典还是哈希键的底层实现之一。当一个哈希键包含的键值对 ...
分类:
其他好文 时间:
2020-07-14 13:38:13
阅读次数:
66
文章目录前言vscode使用vscode的安装vscode 的插件配置PythonfilesizeBracket Pair ColorizerAnaconda Extension Packpip install pylintpip install yapf配置git前言vscode编辑器个人感觉非常 ...
分类:
编程语言 时间:
2020-07-13 18:36:50
阅读次数:
69
Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. Example 1: Input: nums ...
分类:
其他好文 时间:
2020-07-13 09:59:42
阅读次数:
75
Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. Example 1: Input: nums ...
分类:
其他好文 时间:
2020-07-13 09:57:03
阅读次数:
63
class Solution { vector<vector<pair<int,double> > >v; public: double maxProbability(int n, vector<vector<int>>& edges, vector<double>& succProb, int s ...
分类:
其他好文 时间:
2020-07-12 22:32:44
阅读次数:
79
周赛地址(英):weekly contest 197 周赛地址(中):第 197 场周赛 仓库地址:week-Leetcode 1512. Number of Good Pairs Given an array of integers nums. A pair (i,j) is called goo ...
分类:
其他好文 时间:
2020-07-12 22:23:56
阅读次数:
56
首先java中也是有Pair类可以直接用的。在图或者相关问题中可以派上用场。 其次就是Dijkstra算法。这个算法我是看过,而且今天周赛这题(leetc5211)是挺容易想到该算法,但是我以前只看过没写过,导致我上午打开浏览器现学,结果算法学会了之后发现用邻接矩阵超内存限制,然后只好现学邻接表,学 ...
分类:
其他好文 时间:
2020-07-12 18:43:35
阅读次数:
67