码迷,mamicode.com
首页 >  
搜索关键字:dog distance    ( 3279个结果
吴裕雄--天生自然Linux操作系统:linux yum 命令
yum( Yellow dog Updater, Modified)是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器。 基於RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软体包,无须繁琐地一次次下载、安装。 yum... ...
分类:系统相关   时间:2019-12-28 09:29:46    阅读次数:99
求单源最短路径两顶点最短距离(BFS)
//(矩阵)求图G中顶点x的第一个临接点,如果有返回其下标,否则返回-1 int FirstNeighbor1(MGraph G,int x){ if(x >= MaxVertexNum) return -1; for(int i = 0;i < MaxVertexNum;++i){ if(G.Ed ...
分类:其他好文   时间:2019-12-27 23:37:04    阅读次数:114
Leetcode solution 243: Shortest Word Distance
Problem Statement Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. Example: Assu ...
分类:其他好文   时间:2019-12-26 09:31:42    阅读次数:87
java构造方法
一、概念 java中构造方法指的是: 方法名与类名相同,无返回值的方法,参数可以为空(无参构造方法),也可以带参数(无参构造函数)。 比如一个Dog 类,public Dog(){};这个就是无参数的构造方法。 public Dog(String name){this.name=name};这个就是 ...
分类:编程语言   时间:2019-12-25 20:42:22    阅读次数:73
JS/javascript中的prototype和__proto__
// 创建一个Dog构造函数 function Dog(name, age) { // ① this.name = name this.age = age } Dog.prototype.eat = function() { // ② console.log('肉骨头真好吃') } // 使用Dog ...
分类:编程语言   时间:2019-12-25 19:04:57    阅读次数:86
vue 自定义 滚动条指令
Vue.directive('scroll', { bind: (el, binding, vnode) => { // 是否执行回调事件 let eventAction = true // 距离底部剩余距离开始触发回调 let distance = 100 // (unit: px) // 监听滚 ...
分类:其他好文   时间:2019-12-25 14:33:51    阅读次数:89
计时器 GC垃圾回收 demo
计时器: 1 public void start() { 2 //定义计时器 3 Timer timer=new Timer(); 4 //定义运行间隔(数字越小,速度越快) 5 int interval=30; 6 //创建定时任务 7 TimerTask task=new TimerTask() ...
分类:其他好文   时间:2019-12-25 01:11:04    阅读次数:115
install samba on wsl
install samba on wsl 参考 https://blog.csdn.net/fcymk2/article/details/86572249 参考 https://segmentfault.com/a/1190000015892542 参考 https://dog.xmu.edu.cn ...
分类:其他好文   时间:2019-12-23 22:34:38    阅读次数:112
【转】
1 ##类的使用方法 2 ##实例1: 3 class Dog(object): 4 typee="宠物" #类变量 5 #初始化方法 6 def __init__(self,a,b,c): 7 self.name = a #实例变量 8 self.age = b 9 self.color = c ...
分类:其他好文   时间:2019-12-23 13:14:41    阅读次数:84
arts lettcode 题目
编写一个函数来查找字符串数组中的最长公共前缀。 如果不存在公共前缀,返回空字符串 ""。 示例 1: 输入: ["flower","flow","flight"]输出: "fl"示例 2: 输入: ["dog","racecar","car"]输出: ""解释: 输入不存在公共前缀。说明: 所有输入 ...
分类:其他好文   时间:2019-12-23 00:10:40    阅读次数:107
3279条   上一页 1 ... 35 36 37 38 39 ... 328 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!