leetcode 45 ii

Leetcode 剑指 Offer 58 - II. 左旋转字符串(Zuo xuan zhuan zi fu chuan lcof)

[题目链接](https://leetcode.cn/problems/zuo-xuan-zhuan-zi-fu-chuan-lcof) 字符串的左旋转操作是把字符串前面的若干个字符转移到字符串的尾部。请定义一个函数实现字符串左旋转操作的功能。比如,输入字符串"abcdefg"和数字2,该函数将返回 ......
左旋 字符串 字符 Leetcode Offer

如何使用iisreset命令重启IIS

如何使用iisreset命令重启IIS 1、界面操作打开“控制面板”->“管理工具”->“服务”。找到“IIS Admin Service” 右键点击“重新启动” 弹出 “停止其它服务” 窗口,点击“是”。2、Net 命令操作点击 “开始”->“运行”,输入cmd 打开命令窗口;输入 net sto ......
iisreset 命令 IIS

Leetcode刷题笔记——二分法

二分法是搜索算法中极其典型的方法,其要求输入序列有序并可随机访问。算法思想为 输入:有序数组nums,目的数值target 要求输出:如果target存在在数组中,则输出其index,否则输出-1 1. 将原数组通过[left,right]两个索引划分范围,初值left=0,right=数组的最后一 ......
二分法 Leetcode 笔记

LeetCode952三部曲之一:解题思路和初级解法(137ms,超39%)

### 欢迎访问我的GitHub > 这里分类和汇总了欣宸的全部原创(含配套源码):[https://github.com/zq2599/blog_demos](https://github.com/zq2599/blog_demos) ### 题目描述 - 难度:**困难** - 编程语言:Jav ......
解法 三部曲 LeetCode 思路 952

[LeetCode] 1560. Most Visited Sector in a Circular Track

Given an integer n and an integer array rounds. We have a circular track which consists of n sectors labeled from 1 to n. A marathon will be held on t ......
LeetCode Circular Visited Sector Track

[LeetCode] 2511. Maximum Enemy Forts That Can Be Captured

You are given a 0-indexed integer array forts of length n representing the positions of several forts. forts[i] can be -1, 0, or 1 where: -1 represent ......
LeetCode Captured Maximum Enemy Forts

删列造序 II

给定由 n 个字符串组成的数组 strs,其中每个字符串长度相等。 选取一个删除索引序列,对于 strs 中的每个字符串,删除对应每个索引处的字符。 比如,有 strs = ["abcdef", "uvwxyz"],删除索引序列 {0, 2, 3},删除后 strs 为["bef", "vyz"]。 ......
II

.NET6.0 IIS 部署

1. 安装IIS服务 2. 下载.NET6 Web部署包 https://dotnet.microsoft.com/en-us/download/dotnet/6.0 3. 项目发布 4. 打开IIS管理-->模块-->右键网站-->添加网站 设置内容 5. 设置防火墙 选择端口-->设置端口号-- ......
NET6 NET IIS

剑指 Offer 14- II. 剪绳子 II(中等)

题目: ![](https://img2023.cnblogs.com/blog/2679751/202309/2679751-20230901202113801-1638700230.png) ``` class Solution { //本题用贪心算法,拆成尽可能多的3且不可以出现长度为1的小段 ......
绳子 Offer 14 II

【Leetcode刷题记录】1、买钢笔和铅笔的方案数;2、一个图中连通三元组的最小度数;3、带因子的二叉树

1、买钢笔和铅笔的方案数 题目:给你一个整数 total ,表示你拥有的总钱数。同时给你两个整数 cost1 和 cost2 ,分别表示一支钢笔和一支铅笔的价格。你可以花费你部分或者全部的钱,去买任意数目的两种笔。 请你返回购买钢笔和铅笔的 不同方案数目 。 思路:枚举法。 假设 total 最多可 ......
度数 钢笔 因子 铅笔 Leetcode

[LeetCode][494]target-sum

# Content You are given an integer array nums and an integer target. You want to build an expression out of nums by adding one of the symbols '+' and ......
target-sum LeetCode target 494 sum

[LeetCode][416]partition-equal-subset-sum

# Content Given an integer array nums, return true if you can partition the array into two subsets such that the sum of the elements in both subsets i ......

Leetcode 151. 反转字符串中的单词(Reverse words in a string)

[题目链接](https://leetcode.cn/problems/reverse-words-in-a-string) 给你一个字符串 s ,请你反转字符串中 单词 的顺序。 单词 是由非空格字符组成的字符串。s 中使用至少一个空格将字符串中的 单词 分隔开。 返回 单词 顺序颠倒且 单词 之 ......
字符串 单词 字符 Leetcode Reverse

LeetCode46全排列(回溯入门)

### 欢迎访问我的GitHub > 这里分类和汇总了欣宸的全部原创(含配套源码):[https://github.com/zq2599/blog_demos](https://github.com/zq2599/blog_demos) ### 题目描述 - 难度:中等 - 给定一个不含重复数字的数 ......
LeetCode 46

[LeetCode] 2240. Number of Ways to Buy Pens and Pencils

You are given an integer total indicating the amount of money you have. You are also given two integers cost1 and cost2 indicating the price of a pen ......
LeetCode Pencils Number 2240 Ways

Leetcode 24. 两两交换链表中的节点(Swap nodes in pairs)

[题目链接](https://leetcode.cn/problems/swap-nodes-in-pairsn/) 给你一个链表,两两交换其中相邻的节点,并返回交换后链表的头节点。你必须在不修改节点内部的值的情况下完成本题(即,只能进行节点交换)。 示例 1: ![](https://img202 ......
节点 Leetcode nodes pairs Swap

[LeetCode][338]counting-bits

# Content Given an integer n, return an array ans of length n + 1 such that for each i (0 <= i <= n), ans[i] is the number of 1's in the binary repres ......
counting-bits LeetCode counting bits 338

剑指 Offer 56 - II. 数组中数字出现的次数 II(中等)

题目: ![](https://img2023.cnblogs.com/blog/2679751/202308/2679751-20230830213756753-635102402.png) ``` class Solution { public: int singleNumber(vector& ......
数组 次数 数字 Offer 56

[LeetCode][337]house-robber-iii

# Content The thief has found himself a new place for his thievery again. There is only one entrance to this area, called root. Besides the root, each ......
house-robber-iii LeetCode robber house 337

Ubuntu安装Quartus II

https://www.intel.com/content/www/us/en/software-kit/785085/intel-quartus-prime-lite-edition-design-software-version-22-1-2-for-linux.html Ubuntu16.04 ......
Quartus Ubuntu II

[LeetCode][322]coin-change

# Content You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of mone ......
coin-change LeetCode change coin 322

[LeetCode][312]burst-balloons

# Content You are given n balloons, indexed from 0 to n - 1. Each balloon is painted with a number on it represented by an array nums. You are asked t ......
burst-balloons LeetCode balloons burst 312

ethernet phy mdio c22 c45

# ethernet phy mdio c22 c45 [linux系统读写PHY寄存器工具mdio](https://zhuanlan.zhihu.com/p/26205006) [了解与MDIO MDC接口相关的clause22、clause45](http://www.360doc.com/c ......
ethernet mdio c22 c45 phy

IIS本地配置和网站服务器配置

本地配置: 1.进入“程序”,然后点“启用或关闭Windows功能” 2.万维网服务勾选 服务器IIS配置: IIS服务器的搭建 IIS全称Internet Information Service,中文名:Internet信息服务,专用于微软操作系统平台,兼容微软的各项Web技术,尤其是ASP.NE ......
服务器 网站 IIS

[LeetCode] 2483. Minimum Penalty for a Shop

You are given the customer visit log of a shop represented by a 0-indexed string customers consisting only of characters 'N' and 'Y': if the ith chara ......
LeetCode Minimum Penalty 2483 Shop

leetcode & c++多线程刷题日志

## 1.按序打印 [按序打印](https://leetcode.cn/problems/print-in-order/description/) **解法** + 1. 互斥锁 ```c++ class Foo { mutex mtx1, mtx2; public: Foo() { mtx1.l ......
线程 leetcode 日志 amp

机器学习 -> Machine Learning (II)

> 这次来学习深度学习吧! # 1 训练前 ## 1.1 神经元与神经网络 神经元是神经网络的基本单位, 模拟了生物神经元的工作机制. 每个神经元接受一组输入, 将这些输入与其权重相乘, 然后对所有的乘积求和, 并加上一个偏置. 最后, 将得到的结果传递给激活函数. 神经网络由多个神经元组成, 这些 ......
Learning 机器 Machine gt II

Leetcode刷题笔记——单调性

## 单调性 单调性是数学中使用的一种常见性质,通常用于描述函数,在高等数学中的定义常常为: 设函数f(x)在区间I上有定义,如果对于I上的任意两个数x1和x2,当x1f(x2)),则称函数f(x)在区间I上是单调递增的(或者单调递减的)。 例如如下图像就是两个单调函数。 ![](https://i ......
Leetcode 笔记

Leetcode 剑指Offer 05. 替换空格(Ti huan kong ge lcof)

[题目链接](https://leetcode.cn/problems/ti-huan-kong-ge-lcof) 请实现一个函数,把字符串 s 中的每个空格替换成"%20"。 示例 1: ``` 输入:s = "We are happy." 输出:"We%20are%20happy." ``` 提 ......
空格 Leetcode Offer huan kong

[LeetCode][309]best-time-to-buy-and-sell-stock-with-cooldown

# Content You are given an array prices where prices[i] is the price of a given stock on the ith day. Find the maximum profit you can achieve. You may ......