有待总结。 Binary Search: 633, Sum of Square Numbers 475, Heaters 744, Find Smallest Letter Greater than target(LC submissions from original session) 427?? ...
分类:
其他好文 时间:
2021-06-13 09:48:38
阅读次数:
0
图像加法 你可以使用函数cv2.add() 将两幅图像进行加法运算,当然也可以直接使 用numpy,res=img1+img。两幅图像的大小,类型必须一致,或者第二个 图像可以使一个简单的标量值。 import numpy as np import cv2 from matplotlib impor ...
分类:
编程语言 时间:
2021-06-10 18:30:52
阅读次数:
0
目录解释 /bin:bin是Binary的缩写, 这个目录存放着最经常使用的命令。 /boot:这里存放的是启动Linux时使用的一些核心文件,包括一些连接文件以及镜像文 件。 /dev:dev是Device(设备)的缩写, 存放的是Linux的外部设备,在Linux中访问设备的方 式和访问文件的方 ...
分类:
系统相关 时间:
2021-06-10 17:42:28
阅读次数:
0
思路: 整个图可以看作是一个“环”和“挂”在上面的若干棵树组成的。首先找到这个“环”,然后分别计算上面每棵树包含的节点数,再计算同一棵树内及不同的树之间的路径数即可。可以使用图论算法也可以不使用。参考了https://codeforces.com/blog/entry/84984和https://w ...
分类:
其他好文 时间:
2021-06-08 22:39:19
阅读次数:
0
bit_manipulation 二进制位操作 binary_and(a: int, b: int) → str 整数二进制 and 操作 对两个整形参数,先转换成二进制,对2个二进制数据进行 and 与操作,返回 二进制字符制 binary_or(a: int, b: int) → str or ...
分类:
其他好文 时间:
2021-06-03 17:54:32
阅读次数:
0
https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/ 根据一棵树的中序遍历与后序遍历构造二叉树。 注意: 你可以假设树中没有重复的元素。 例如,给出 中序遍历 inor ...
分类:
其他好文 时间:
2021-06-02 15:25:05
阅读次数:
0
#include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a[i] ...
分类:
其他好文 时间:
2021-06-02 13:37:21
阅读次数:
0
You have n boxes. You are given a binary string boxes of length n, where boxes[i] is '0' if the ith box is empty, and '1' if it contains one ball. In ...
分类:
其他好文 时间:
2021-06-02 10:37:12
阅读次数:
0
C语言 #include "stdbool.h" #define NULL ((void *)0) //Definition for a binary tree node. struct TreeNode { int val; struct TreeNode *left; struct TreeNo ...
分类:
编程语言 时间:
2021-05-25 17:51:01
阅读次数:
0
437. 路径总和 III class Solution: def pathSum(self, root: TreeNode, sum: int) -> int: dp = {} def search(root: TreeNode): if root: search(root.left) searc ...
分类:
编程语言 时间:
2021-05-24 17:23:14
阅读次数:
0