leetcode sliding maximum window

绿色Windows版gvim

绿色版gvim,基于官网9.0版本制作,Windows系统下载后直接运行gvim.exe即可(不能存放于中文目录中,否则配置不生效) ......
Windows 绿色 gvim

WINDOWS ESC1 escalate privilege

ESC1 utilization conditions: ESC1 needs to meet following requirements to use successfully 1.Have permission to accquire certificate 2.the value of pk ......
privilege escalate WINDOWS ESC1 ESC

基于 Windows10 搭建 ELK (Elasticsearch 8 + Kibana + Logstash)

参考 https://www.cnblogs.com/hualess/p/11540477.html https://blog.csdn.net/susu1083018911/article/details/124551632 https://blog.csdn.net/Dyanxier/artic ......
Elasticsearch Logstash Windows Kibana ELK

Windows ESC2 escalate privilege

BRIEF ADCS(Active Directory certificate service).There are a lot enterpirse CA set up to issue certificates using certificate template definitions,whi ......
privilege escalate Windows ESC2 ESC

Mongodb数据库安装(Windows下)

链接:https://pan.baidu.com/s/1TndeoKOTqqb597mSfNX_mQ 提取码:94sj 下载 mongodb-windows-x86_64-5.0.14.zip , 直接解压即可。 在bin所在目录下,新建 data/db 、data/logs 文件夹。 新建bat文 ......
Mongodb Windows 数据库 数据

在不使用内置函数和中间变量的情况交换数字LeetCode力扣题解面试题16.01

#异或法#Kotlin ```Kotlinclass Solution { fun swapNumbers(numbers: IntArray): IntArray { numbers[0] = numbers[0] xor numbers[1] numbers[1] = numbers[1] xo ......
题解 变量 函数 LeetCode 情况

windows2019 iis配置(应用程序池.net v4.5 classic 托管管道模式要设为“集成”)

近几天在windows2019的服务器上配置iis,用来建一个开源的“微厦”的在线教育系统,一直不能正常运行。 看了多次部署说明,指出要将“应用程序池”的“经典”改为“集成”模式,当时只改了一个,中间的一个没有改过来,白白浪费了3个小时的时间; ......
应用程序 管道 windows classic 模式

Windows系统进程svchost.exe在后台偷偷下载数据消耗流量

手机开热点给电脑用,发现电脑网络很慢,用360流量防火墙检查流量情况,发现svchost.exe一直在偷偷搞我流量,整了1个多G,心痛。又是流氓东西。网上查了一下,svchost.exe是系统进程,还不能随便删除停用啥的,于是只能想办法禁止它使用网络。目前我的处理方法是在360流量防火墙上把svch ......
后台 流量 进程 Windows svchost

如何彻底禁止Windows系统强制更新(亲测有效)

作为一个电脑经常开一堆程序不关机的人,我真的被的被Windows系统的强制更新策略恶心到了,一旦忘记延长暂停更新截止日期,Windows就会偷偷三更半夜给我重启电脑,时不时导致没保存的资料丢失。为了彻底避免Windows系统偷偷半夜更新系统重启电脑,找了很久,终于找到一个不会自动更新系统修复漏洞的W ......
Windows 系统

windows 创建自定义url协议 通过浏览器打开cmd

打开regedit 注册表编辑器 找到 HKEY_CLASSES_ROOT 新建 如下目录 "C:\Windows\System32\cmd.exe" "%1" 最后在浏览器中输入 cmd://pause 即可打开cmd ......
浏览器 windows url cmd

ICPC2021Kunming G Find the Maximum 题解

Question Find the Maximum 给出一个树,每个点有一个权值 \(b_n\),求一条树上路径 \(V\),要求 \(\frac{\sum_{u\in V (-x^2+b_u x)}}{|V|}\) 最大,其中 \(x\) 是自己选择的一个树 Solution 先转化一下 \(\f ......
题解 Kunming Maximum ICPC 2021

在Windows环境下安装xmind

在Windows环境下安装xmind xmind是什么 xmind是一款思维导图软件, 应用Eclipse RCP软件架构,打造易用、高效的可视化思维软件,强调软件的可扩展、跨平台、性能,致力于帮助用户提高生产力。 xmind采用Java语言开发,具备跨平台运行的性质、且基于Eclipse RCP体 ......
Windows 环境 xmind

window本机搭建https环境(两种方式)

一、(方式一)通过openssl 安装ssl证书搭建https 1.下载openssl http://slproweb.com/products/Win32OpenSSL.html2.安装之后配置环境变量 OPENSSL_HOME …\bin Path变量末尾加;%OPENSSL_HOME%3. 创 ......
方式 环境 window https

Windows系统中Run对话框输入URL和IP地址的区别

Windows系统中Run对话框输入URL和IP地址的区别 在Windows系统中,我们可以通过Run对话框快速执行一些命令或者打开一些应用程序。当我们在Run对话框中输入URL(比如//www.baidu.com)和IP地址(比如\192.168.3.194)时,两者有一些区别。本篇博客将详细探讨 ......
对话框 Windows 地址 系统 Run

Windows判断一个字符串是否纯十六进制数

#include <regex> using namespace std; bool IsHexDigit(const TCHAR* s) { TCHAR* pattern = _T("^0[xX][0-9A-Fa-f]+$|^[0-9A-Fa-f]+$"); #ifdef UNICODE std: ......
十六进制 字符串 字符 Windows

windows右键管理程序

其实没什么好说的,软件操作很直观 仓库地址:https://github.com/BluePointLilac/ContextMenuManager 下载最新版,双击运行即可 ......
windows 程序

C# 封装 Windows 全局热键

全局热键工具类(GlobalHotkey) 【文 / 张赐荣】 1. 功能概述 全局热键工具类(GlobalHotkey)是一个用于注册全局热键的工具类。它允许你在你的应用程序中注册特定的键盘组合,以便在用户按下这些组合时触发相应的事件。此工具类提供了以下主要功能: 注册多个热键并定义每个热键的组合 ......
热键 全局 Windows

[LeetCode] 1578. Minimum Time to Make Rope Colorful

Alice has n balloons arranged on a rope. You are given a 0-indexed string colors where colors[i] is the color of the ith balloon. Alice wants the rope ......
LeetCode Colorful Minimum 1578 Make

cmake管理qt项目,设置windows和linux下生成的程序图标,以及任务栏显示设置的图标

先代码设置MainWindow图标: // 主要用于在linux下运行程序时,在任务栏显示图标MainWindow w; w.setWindowIcon(QIcon(":/res/icon.png")); (*windows下设置生成的exe程序的ico图标后,默认也会对运行程序时任务栏的图标也设置 ......
图标 任务 windows 程序 项目

[App Service for Windows]通过 KUDU 查看 Tomcat 配置信息

问题描述 在App Service 中选择了Java Tomcat后,如何查看Azure App Service的Tomcat的配置信息呢? 问题解答 可以通过以下的 3个步骤查看: 第一步:登录 Kudu : 方式一:在当前 Web 应用的 URL 中加入 .scm (插入位置在 site 名与 ......
Service Windows Tomcat 信息 KUDU

.NET Core 程序实现 Windows 系统 Development、Staging、Production 三种环境的无感部署

.NET Core 程序实现 Windows 系统 Development、Staging、Production 三种环境的无感部署 阅读目录 〇、前言 一、配置文件 二、程序读取配置 1. 配置文件信息读取实现 2. 关于本机测试 三、Windows 服务器配置 四、如何在同一台服务器 部署 两种 ......

软件测试/测试开发|你不知道的Windows神操作

简介 Windows操作系统是由微软公司开发的操作系统系列,是全球最广泛使用的操作系统之一。首次发布于1985年,经历了多个版本和更新,如Windows 95、Windows XP、Windows 7、Windows 10等。目前发行到了Windows11版本,本文将为大家介绍Windows11版本 ......
软件测试 Windows 软件

[LeetCode Hot 100] LeetCode111. 二叉树的最小深度

题目描述 思路 二叉树的最小深度就是第一个叶子节点所在的层数 方法一:前序遍历(递归、dfs) /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeN ......
LeetCode 深度 Hot 100 111

[LeetCode Hot 100] LeetCode110. 平衡二叉树

题目描述 思路 LeetCode104. 二叉树的最大深度 变种 方法一:后序遍历(递归、dfs) /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * Tre ......
LeetCode Hot 100 110

[LeetCode Hot 100] LeetCode543. 二叉树的直径

题目描述 思路 所谓二叉树的直径,就是左右子树的最大深度之和。 方法一: /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; ......
LeetCode 直径 Hot 100 543

[LeetCode Hot 100] LeetCode104. 二叉树的最大深度

题目描述 思路 熟练掌握二叉树的遍历算法 方法一:层序遍历(迭代)+计数 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; ......
LeetCode 深度 Hot 100 104

[LeetCode Hot 100] LeetCode102. 二叉树的层序遍历

题目描述 思路 方法一:递归 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode() {} * Tree ......
LeetCode Hot 100 102

[LeetCode Hot 100] LeetCode144. 二叉树的前序遍历

题目描述 思路 熟练掌握迭代和递归的代码。 递归代码:额外写一个函数void preOrder(TreeNode node, List res) 迭代代码:会用到数据结构——栈。先入栈当前节点的右子节点,再入栈左子节点。 方法一:递归 /** * Definition for a binary tr ......
LeetCode Hot 100 144

[LeetCode Hot 100] LeetCode94. 二叉树的中序遍历

题目描述 思路 熟练掌握迭代和递归的代码。 递归:额外写一个函数void inOrder(TreeNode node, List res) 迭代:令cur = root,一直往左子树找,找到最后一个左子节点,当cur为空,就开始处理栈顶元素(将栈顶元素加入结果集),随后将cur设置为右子节点,继续执 ......
LeetCode Hot 100 94

[LeetCode Hot 100] LeetCode145. 二叉树的后序遍历

题目描述 思路 递归:额外写一个函数void postOrder(TreeNode node, List res) 迭代: 前序遍历:根 左 右 将前序遍历改造成:根 右 左 然后反转根右左为:左 右 根,即为后序遍历 优化一下: while (!stack.isEmpty()) { TreeNod ......
LeetCode Hot 100 145