矩阵leetcode 100 240

MySQL——远程连接非本地MySQL数据库服务器,报错ERROR 1130: Host 192.168.3.100 is not allowed to connect to this MySQL server的解决方案

一、问题二、解决方案前提条件,:要先确认被访问的电脑防火墙关闭:控制面板-系统与安全-Windows Defender 防火墙-关闭-确定 一、问题连接非本地数据库时,输入对方ip、账号和密码后点击连接测试,报错: ERROR 1130: Host 192.168.3.100 is not allo ......
MySQL 解决方案 allowed connect 数据库

numpy的点乘和矩阵乘法

1. np.dot()和@是矩阵乘法 2. np.multiply()和*是点乘,对应元素相乘 ......
乘法 矩阵 numpy

第二天|977. 有序数组的平方 209.长度最小的子数组 59.螺旋矩阵II

这题花了很久去debug,之前都是直接乘完直接排序的。今天用了一下双指针,边界的问题最后还是喵了一眼答案。 这题上次没刷出来,直接看的答案用的队列的思路,需要复习: 这道题和我上次面试蚂蚁的题目非常相似,都是这种旋转的题目。当时非常难想出来现在有一个具体思路了: ......
数组 矩阵 螺旋 长度 977

[LeetCode] 1351. Count Negative Numbers in a Sorted Matrix

Given a m x n matrix grid which is sorted in non-increasing order both row-wise and column-wise, return the number of negative numbers in grid. Exampl ......
LeetCode Negative Numbers Matrix Sorted

递归-二叉搜索树-leetcode98验证二叉搜索树

```java //leetcode submit region begin(Prohibit modification and deletion) /** * Definition for a binary tree node. * public class TreeNode { * int va ......
leetcode 98

纯态、混合态、密度矩阵归纳

[toc] ### Haug 的半导体光学书65页 直接说:**半导体中能带的电子不是纯态,而是处于混合态**。必须用密度矩阵描述。 ‍ ### 金老师高量讲义中密度矩阵 ​![image.png](https://assets.b3logfile.com/siyuan/1619246215189/ ......
矩阵 密度

矩阵 metrics

1351. Count Negative Numbers in a Sorted Matrix Easy 338393Add to ListShare Given a m x n matrix grid which is sorted in non-increasing order both row ......
矩阵 metrics

用Matlab程序产生连接概率为p=0.1的含100个节点ER随机网络,绘制网络及其度分布,分析其均匀性,并计算其传播阈值。

[toc] # 要求(可以直接作为Prompt) 用Matlab程序产生连接概率为p=0.1的含100个节点ER随机网络,绘制网络及其度分布,分析其均匀性,并计算其传播阈值。 # 代码 ```matlab clear all;close all;clc; % 参数定义 n = 100; % 节点数量 ......
阈值 网络 节点 概率 程序

LeetCode35.搜索插入位置

//个人学习笔记用 - 题目: 给定一个排序数组和一个目标值,在数组中找到目标值,并返回其索引。如果目标值不存在于数组中,返回它将会被按顺序插入的位置。 请必须使用时间复杂度为 O(log n) 的算法。 参考题解--代码随想录 - 暴力解法: ~~~c++ class Solution { pub ......
LeetCode 位置 35

LeetCode 90. 子集 II

``` class Solution { public: unordered_map cnt; vector> res; vector path; vector> subsetsWithDup(vector& nums) { for(auto i:nums) cnt[i]++; dfs(-10);/ ......
子集 LeetCode 90 II

【leetcode】104. Maximum Depth of Binary Tree

给定一个二叉树,找出其最大深度。 二叉树的深度为根节点到最远叶子节点的最长路径上的节点数。 **说明:** 叶子节点是指没有子节点的节点。 **示例:** 给定二叉树 `[3,9,20,null,null,15,7]`, ``` 3 / \ 9 20 / \ 15 7 ``` 返回它的最大深度 3 ......
leetcode Maximum Binary Depth Tree

LeetCode 40. 组合总和 II

``` class Solution { public: vector> res; vector> combinationSum2(vector& candidates, int target) { sort(candidates.begin(),candidates.end()); dfs(can ......
总和 LeetCode 40 II

LeetCode 39. 组合总和

``` class Solution { public: vector> res; vector> combinationSum(vector& candidates, int target) { dfs(candidates,0,target); return res; } vector path ......
总和 LeetCode 39

【leetcode】21. Merge Two Sorted Lists

将两个升序链表合并为一个新的 **升序** 链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 **示例 1:** ![](https://assets.leetcode.com/uploads/2020/10/03/merge_ex1.jpg) **输入:**l1 = \[1,2,4\] ......
leetcode Sorted Merge Lists Two

Leetcode 2611. 老鼠和奶酪

### 题目: 有两只老鼠和 `n` 块不同类型的奶酪,每块奶酪都只能被其中一只老鼠吃掉。 下标为 `i` 处的奶酪被吃掉的得分为: - 如果第一只老鼠吃掉,则得分为 `reward1[i]` 。 - 如果第二只老鼠吃掉,则得分为 `reward2[i]` 。 给你一个正整数数组 `reward1` ......
奶酪 Leetcode 老鼠 2611

如何对16个末端回路的电气因素进行在线监测——智慧用电精灵AESP100

安科瑞虞佳豪 AESP100系列末端多回路智慧用电在线监测装置应用于户内建筑物及类似场所的工业、商业、民用建筑及基础设施等领域低压终端配电网络。此装置配合断路器使用,对用电线路的关键电气因素,如电压、电流、功率、温度、能耗等进行实时监测,具有预警报警、电能计量统计等功能。 AESP100系列智慧用电 ......
末端 回路 因素 电气 智慧

【笔记】矩阵

#矩阵 ## 定义: 数学意义上有更加严谨的矩阵定义,这里不过多展开,如有需要还请自行查询。 由$n\times m$个数排成$n$行$m$列,第$i$行$j$列的数记为$a_{i,j}$。我们称这$n \times m$个数为矩阵$A$的元素,记作: $$ A=\begin{bmatrix} &1 ......
矩阵 笔记

BZOJ 100x 做题记录

# [#1000. A+B Problem](https://hydro.ac/d/bzoj/p/1000) 太难了,不会。 # [#1001. [BeiJing2006]狼抓兔子](https://hydro.ac/d/bzoj/p/1001) 印象很深刻,接触对偶图的第一题,跳过。 # [#10 ......
BZOJ 100x 100

C200/10/1/1/100施耐德ELAU驱动器

C200/10/1/1/100施耐德ELAU驱动器 C200/10/1/1/100施耐德ELAU驱动器 从历史上看,将 4mA 作为“范围零”的主要原因不是其实时零错误检测功能;原因是从控制室到每个发射器只使用 2 根电线,而不是 3 根电线,即可获得 2 线回路供电功能。4-20mA 范围和 4. ......
施耐德 驱动器 ELAU 200 100

LeetCode----字典树

# 1 原理 [字典树原理参考](https://blog.csdn.net/m0_46202073/article/details/107253959) # 2 构建字典树 ```python class Trie: def __init__(self): # 字典树结构 # children 数 ......
字典 LeetCode

Leetcode刷题指南

## 1. 数据结构 ### 1.1 数组 - **循环数组问题**:把数组扩大为两倍即可,但不是真的扩大两倍,而是通过索引取模的方式 ### 1.2 链表 链表可以通过引入虚拟头节点 `ListNode *dummy = new ListNode{-1, nullptr}` 来极大简化 0. ** ......
Leetcode 指南

leetcode 17. 电话号码的字母组合

## 递归 自己写了个递归的算法 ```java class Solution { public List letterCombinations(String digits) { List resList = recursion(digits); return resList; } public L ......
电话号码 字母 leetcode 号码 电话

Leetcode 2352. 相等行列对

### 题目: 给你一个下标从 `0` 开始、大小为 `n x n` 的整数矩阵 `grid` ,返回满足 `R~i~` 行和 `C~j~` 列相等的行列对 `($$R_i$$, C~j~)` 的数目。 如果行和列以相同的顺序包含相同的元素(即相等的数组),则认为二者是相等的。 ### 难度:简单 ......
行列 Leetcode 2352

Leetcode Hot 100 & 49. Group Anagrams

写在前面: 不知不觉已经研二下了,既然选择以后走AI这条路,不可避免地也得刷一刷leetcode题目,因为招聘的时候笔试总是要用到的。首先刷一刷leetcode的hot 100题,好记性赶不上烂笔头,记录下来在写这些算法题中的收获给自己看。 参考资料: 考点:哈希 & [题干] 这题没做出来,第一次 ......
Leetcode Anagrams Group Hot 100

leetcode 15. 三数之和

## 暴力法 暴力解法总是最直接能想到的解法。 ```java NA ``` ## 双指针法 贴一个评论区看到的解法 ```java class Solution { //定义三个指针,保证遍历数组中的每一个结果 //画图,解答 public List> threeSum(int[] nums) { ......
之和 leetcode 15

HONEYWELL工业模块SPS5713 51199930-100

W; ① ⑧ 0 ③ 0 ① 7 7 ⑦ 5 ⑨HONEYWELL工业模块SPS5713 51199930-100,05074-A-0122 05704-A-0121 05704-A-0131,05701-A-0361,05704-A-0146,05704-A-0145,05701-A-0361,0 ......
HONEYWELL 模块 51199930 工业 5713

[LeetCode] 2352. Equal Row and Column Pairs

Given a 0-indexed n x n integer matrix grid, return the number of pairs (ri, cj) such that row ri and column cj are equal. A row and column pair is co ......
LeetCode Column Equal Pairs 2352

[LeetCode] 1347. Minimum Number of Steps to Make Two Strings Anagram 制造字母异位词的最小步骤数

You are given two strings of the same length `s` and `t`. In one step you can choose **any character** of `t` and replace it with **another character* ......
字母 LeetCode 步骤 Anagram Minimum

cpp test write content speed to ssd and usual disk respectively 1M,10M,100M rows data,the fact has illustrated the write speed of ssd is 4-5 times faster than usual disk

#include <chrono> #include <ctime> #include <fstream> #include <iomanip> #include <iostream> #include <sstream> #include <thread> #include <uuid/uuid. ......
speed write usual disk respectively

leetcode-图论总结

此文总结一下常见图论算法,代码可以为后续遇见类似题目提供参考: 1. 图的表示: 邻接矩阵:可通过创建数组得到 邻接表:我个人喜欢通过LinkedList<int[]>[] graph = new LinkedList[n];得到。 Edge List:同样可以通过LinkedList<int[]> ......
leetcode