码迷,mamicode.com
首页 >  
搜索关键字:pick up points    ( 9906个结果
LeetCode 169. Majority Element
题目描述 题目链接 思路1 Hash表 很直接,代码略 由于题目的follow-up要求空间复杂度O(1),所以,这个方法其实并不是最优解。 思路2 一次删除两个不同的数 一次删除两个不同的数,如果存在majority element,那么这个majority element一定会最后剩下来, 但是 ...
分类:其他好文   时间:2021-02-23 14:06:57    阅读次数:0
第三节:观察者模式——JDK应用的源码分析
一、观察者模式在 JDK 应用的源码分析 1、JDK 的 Observable 类就使用了观察者模式 2、源码分析 Observable 通过 Vector 来管理 Observer 其中提供了 add/delete/notify 等方法来管理观察者; Observer 是一个接口,提供了一个 up ...
分类:其他好文   时间:2021-02-20 11:49:24    阅读次数:0
Spring Cloud Config:外部集中化配置管理
Spring Cloud Config:外部集中化配置管理 摘要 Spring Cloud Config 可以为微服务架构中的应用提供集中化的外部配置支持,它分为服务端和客户端两个部分 。 Spring Cloud Config 简介 Spring Cloud Config 分为服务端和客户端两个部 ...
分类:编程语言   时间:2021-02-16 12:08:08    阅读次数:0
Typescript中Partial, Readonly, Record, Pick
源码 /** * Make all properties in T optional */ type Partial<T> = { [P in keyof T]?: T[P]; }; /** * Make all properties in T readonly */ type Readonly<T ...
分类:其他好文   时间:2021-02-10 12:59:56    阅读次数:0
Kill port process
refer to: https://stackoverflow.com/questions/24387451/how-can-i-kill-whatever-process-is-using-port-8080-so-that-i-can-vagrant-up/24388281 怎么解决端口被占用的 ...
分类:其他好文   时间:2021-02-09 11:56:30    阅读次数:0
检测设备是否开启,ping
vim ping.sh ping -c2 $1 &> /dev/null //-c2表示运行2次, $1代表变量 if [ $? -eq 0 ];then // $?表示判定上句命令是否正确 0表示正确 1错误 // -eq表示 等于= echo "$1 is up" else echo "$1 i ...
分类:其他好文   时间:2021-02-08 12:36:08    阅读次数:0
github修改历史注释
修改git历史提交注释信息 1.查看历史提交记录 git log --pretty=oneline 2.查看最近提交的记录(n为最近n次提交记录) git rebase -i HEAD~n 3.进入编辑历史记录界面,修改历史记录 pick version content pick version1  ...
分类:其他好文   时间:2021-02-08 12:07:25    阅读次数:0
[AGC039E] Pairing Points
#include <bits/stdc++.h> typedef long long ll; ll dp[40][40][40],ans; int n,a[40][40]; char s[40]; ll dfs(int l,int r,int mid){ if (l==r) return 1; if ...
分类:其他好文   时间:2021-02-08 11:40:55    阅读次数:0
route 用法
0.0.0.0 netstat -nr命令会显示路由表的内容。网关为0.0.0.0的网络通常是直连到网络设备上的。因为到自己的直连设备上是不需要网关的,所以0.0.0.0的网关地址是正常的。目的地址是0.0.0.0的路由是你的缺省网关。 Flags:代表的意义如下: o U (route is up ...
分类:其他好文   时间:2021-02-03 11:04:20    阅读次数:0
PCL欧几里得簇提取3d点云分割
#include <iostream> //标准输入输出流 #include <pcl/io/pcd_io.h> //PCL的PCD格式文件的输入输出头文件 #include <pcl/point_types.h> //PCL对各种格式的点的支持头文件 #include <pcl/visualiza ...
分类:其他好文   时间:2021-01-28 11:55:50    阅读次数:0
9906条   上一页 1 ... 4 5 6 7 8 ... 991 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!