Find Pair 思路 排一下序然后枚举计数就行了,不是挺简单的嘛。 这是我以为能过的代码,没想到$Wrong\ answer\ on\ test\ 3$,还是只能过样例。 ...
分类:
其他好文 时间:
2020-05-04 13:05:34
阅读次数:
64
异常: 严重: Context initialization failed org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: No Authenticati ...
分类:
编程语言 时间:
2020-05-04 11:48:52
阅读次数:
105
linux中whereis、which、find、locate的区别 1. find fan路名含 find是最常见和最强大的查找命令,你可以用它找到任何你想找的文件。 find的使用实例: $ find . -name "my*" 搜索当前目录(含子目录,以下同)中,所有文件名以my开头的文件。 ...
分类:
系统相关 时间:
2020-05-04 00:17:39
阅读次数:
105
# ```class MedianFinder {public: /** initialize your data structure here. */ MedianFinder() { } priority_queue max_heap; priority_queue, greater> min_... ...
分类:
其他好文 时间:
2020-05-03 20:26:14
阅读次数:
66
题目 https://leetcode cn.com/problems/find the kth smallest sum of a matrix with sorted rows/ 给你一个 m n 的矩阵 mat,以及一个整数 k ,矩阵中的每一行都以非递减的顺序排列。 你可以从每一行中选出 1 ...
分类:
编程语言 时间:
2020-05-03 20:16:18
阅读次数:
80
link class Solution { public: struct Comp{ bool operator()(vector<int>& v1, vector<int>& v2){ return v1[0]+v1[1]>v2[0]+v2[1]; } }; int kthSmallest(vec ...
分类:
其他好文 时间:
2020-05-03 20:13:29
阅读次数:
92
You are given an m * n matrix, mat, and an integer k, which has its rows sorted in non-decreasing order. You are allowed to choose exactly 1 element f ...
分类:
其他好文 时间:
2020-05-03 18:14:33
阅读次数:
59
Given a non-empty binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any ...
分类:
其他好文 时间:
2020-05-03 14:27:36
阅读次数:
67
前言 曾经年少无知,笑对python爬虫。 如今首战未捷,却已头顶清凉... 奈何心中执着,不愿面对结果。 若有江湖侠客,还望拔刀相助! 思路 网站选取的是爱奇艺的电影排行 requests和bs4库的安装也较为轻松 爬取的过程比较顺利,问题出现在对信息的处理上 处理过程:1.简单了解函数find_ ...
分类:
其他好文 时间:
2020-05-03 12:42:06
阅读次数:
101
一、查找grafana.db文件的位置 find / -name "grafana.db" 或者查看配置文件中的位置/etc/grafana/grafana.ini 二、使用sqlites修改admin密码 # 打开数据库 sqlite3 grafana-6.5.1/data/grafana.db ...
分类:
其他好文 时间:
2020-05-03 10:54:23
阅读次数:
476