公司项目依赖了sonar检查,默认使用的是sonar-maven-plugin:3.7.0.1746版本。在执行sonar扫描时提示: SCM provider was set to "git" but no SCM provider found for this key. 这个原因在于sonar的 ...
分类:
其他好文 时间:
2020-07-25 23:41:22
阅读次数:
125
Given an array of words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justif ...
分类:
其他好文 时间:
2020-07-25 09:35:28
阅读次数:
71
问题背景: 使用spark datasource v2 接口,外接存储源时,发现更改项目版本后,spark-shell报错 搜索该错误无果,网上报什么window util错,并不是我遇到的问题. error: not found: value spark Exception in thread " ...
分类:
编程语言 时间:
2020-07-24 15:52:06
阅读次数:
115
导入模块后,可以使用模块提供的通用变量获取与系统有关的信息 >>> import os >>> len(dir(os)) 152 >>> for i in dir(os):print(i) DirEntry F_OK MutableMapping O_APPEND O_BINARY O_CREAT ... ...
分类:
编程语言 时间:
2020-07-24 09:47:07
阅读次数:
86
解题:前序遍历加上筛选 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = ...
分类:
其他好文 时间:
2020-07-23 23:27:44
阅读次数:
132
找到所有cnpm的文件然后删掉。 重新安装cnpm 然后把安装完成后cnpm文件复制到你的编译器选择的node.exe所在的目录的node_modules下,然后再复制以下两个文件 到和node.exe同一个文件目录下 然后就可以了 ...
分类:
其他好文 时间:
2020-07-23 22:25:40
阅读次数:
84
一、计算机的存储单位有哪些 计算机存储单位一般用bit,Byte,KB,MB,GB,TB,PB,EB,ZB,BB来表示,我们经常将Byte简称为B,将KB简称为K。 二、存储单位之间的换算关系 1、计算机存储信息的最小单位:位 bit (比特) (Binary Digits):存放一位二进制数,即 ...
分类:
其他好文 时间:
2020-07-23 22:23:51
阅读次数:
224
思路:后序遍历, 分情况讨论: 1、两个节点在根的左侧 2、两个节点在根的右侧 3、两个节点在根的左右两侧 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * ...
分类:
其他好文 时间:
2020-07-23 22:15:14
阅读次数:
77
二叉树重建 问题:输入某二叉树的前序遍历和中序遍历的结果,请重建出该二叉树。假设输入的前序遍历和中序遍历的结果中都不含重 复的数字。例如输入前序遍历序列{1,2,4,7,3,5,6,8}和中序遍历序列{4,7,2,1,5,3,8,6},则重建二叉树并返回。 解决: #递归一 # class Tree ...
分类:
其他好文 时间:
2020-07-23 16:17:32
阅读次数:
71
根据BST的前序遍历重建BST 1. 平均O(NlogN) 最坏O(N^2) class Solution { public: TreeNode* dfs(int l, int r, vector<int>& p) { if (l > r) return nullptr; TreeNode* nod ...
分类:
其他好文 时间:
2020-07-23 16:13:09
阅读次数:
67