编程笔记
-
LeetCode 854. K-Similar Strings
原题链接在这里:https://leetcode.com/problems/k-similar-strings/ 题目: Strings s1 and s2 are k-similar (for some non-negative integer k) if we can swap the positions of two letters in s1 exactly k t…
-
汽车软件,芯片与新能源
参考文献链接 https://mp.weixin.qq.com/s/LyHoUSPW2JwgjVqTzRo2ww https://mp.weixin.qq.com/s/75PFkDlnvBiCPic7fUc27w https://mp.weixin.qq.com/s/QQ6DmMtQ5U7BEmRVSYYZxg https://mp.weixin.qq.com/s/osKOlSp…
-
多重背包问题 II
多重背包问题 II(水题但有注意点) 二进制优化的多重背包问题(主要注意的是二进制优化后的数组的大小问题) AC代码 #include <cstdio> #include <iostream> #include <algorithm> #include <c…
-
[Google] LeetCode 2128 Remove All Ones With Row and Column Flips
You are given an m x n binary matrix grid. In one operation, you can choose any row or column and flip each value in that row or column (i.e., changing all 0's to 1's, and all 1's to 0's). Return tru…
-
智慧城市大脑IOC建设方案
城市大脑3.0:聚焦城市大协同和城市运营发展 城市大脑3.0 城市大脑IOC定位与功能:数字领导力的集中体现 城市大脑IOC定位与功能 数字城市运营中心 数字城市运营中心 城市大脑数字驾驶舱总体架构 全感知、全智能、全…
-
Apollo 的 Plugin 学习
apollo 的 plugin 是在 apollo server 启动时候注册的,其形态是一个 js object. 在其中,可以通过 key 指定针对不同事件阶段的自定义处理函数。 events 其实是 apollo 处理请求的 life cycle 中的一系列时间点上触…
-
学习设计模式和画图
目录 参考 参考 使用keynote画图 https://www.yrunz.com/p/用keynote画出手绘风格的配图/ 使用plantuml进行设计
-
Different Pass a Ports(矩阵快速幂板子)
Different Pass a Ports(矩阵快速幂) 题目大意:小明(化名)喜欢旅游,没到一个地方都会搜集该地的邮票并且按照旅游的顺序收藏,他可以进行K时间的旅行,每去一个地方就要花1时间。问k时间后,小明有多少种邮票的排…
-
vue中data为何一定是函数
1、函数是以事件驱动的可重复调用的代码块,在组件复用时可以直接调用vue实例 2、每次组件复用都会重新调用data函数, 3、data在作为函数在数据调用时会return一个新对象使得每一个data都是(相当于scoped)互不干…
-
HC32L110(三) HC32L110的GCC工具链和VSCode开发环境
目录 HC32L110(一) HC32L110芯片介绍和Win10下的烧录 HC32L110(二) HC32L110在Ubuntu下的烧录 HC32L110(三) HC32L110的GCC工具链和VSCode开发环境 以下介绍Ubuntu下搭建用于HC32L110系列MCU的GCC工具链和VSCode的开…