码迷,mamicode.com
首页 >  
搜索关键字:ret hat    ( 35225个结果
spring boot快速整合redis
添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 添加yml配置 spring: re ...
分类:编程语言   时间:2021-06-18 19:19:32    阅读次数:0
515. 在每个树行中找最大值
您需要在二叉树的每一行中找到最大的值。 示例: 输入: 1 / \ 3 2 / \ \ 5 3 9 输出: [1, 3, 9] 解法一:宽度优先搜索 List<Integer> res = new ArrayList<>(); public List<Integer> largestValues(T ...
分类:其他好文   时间:2021-06-18 19:10:47    阅读次数:0
class的继承和私有变量的实现
JS实现类的继承和私有变量的实现 关键技术点:闭包的使用 var FClass =(function(){ var _name; class FClass{ constructor(preName,lastName,str){ this.preName=preName; this.lastName= ...
分类:其他好文   时间:2021-06-17 16:47:13    阅读次数:0
2021.06.16(传参数)
函数传参和默认参数的区别,传参如果传的是引用地址,则会对这个引用产生影响,但是如果是默认参数,则是创建了一个新对象,对原引用没有影响。 const person = { name: "Lydia", age: 21 } const changeAge = (x = { ...person }) => ...
分类:其他好文   时间:2021-06-16 18:12:17    阅读次数:0
linux安装及管理程序
#一、linux应用程序基础 ##1.1 应用程序与系统命令的关系 ##1.2 典型应用程序的目录结构 ##1.3 常见的软件包封装类型 #二、RPM软件包管理工具 ##2.1 RPM概述 1.RPM:Red-Hat Package Manager 2.由Red Hat公司提出,被众多Linux发行 ...
分类:系统相关   时间:2021-06-16 18:04:54    阅读次数:0
v-for和v-if不能同时使用
如果使用v-for遍历数据时,想筛选出URL不为空的项并进行渲染 <ul> <li v-for="(item,index) in list" v-if="item.url" :key="index"> {{ item.name }} </li> </ul> 但是v-for和v-if无法同时使用,这时 ...
分类:其他好文   时间:2021-06-15 18:35:23    阅读次数:0
centos7关闭防火墙
有些人安装的linux的系统默认防火墙不是iptables,而是firewall,那就得使用以下方式关闭防火墙了。 >>>关闭防火墙 systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止 ...
分类:其他好文   时间:2021-06-15 18:12:55    阅读次数:0
[LeetCode] 278. 第一个错误的版本
二分寻找边界 public class Solution extends VersionControl { public int firstBadVersion(int n) { int i = 1; int j = n; while (i<=j) { int mid = i + ((j-i)>>1 ...
分类:其他好文   时间:2021-06-15 18:12:30    阅读次数:0
微信小程序子组件传参给父组件
父组件: <tpupload bind:tpuploadFun="tpupload1" imgs="{{imgs}}" tpNum='9' ></tpupload> // 事件可以拿到传来的参数 tpupload1(e){ console.log(e.detail.imgs, '这个是子组件传递来的 ...
分类:微信   时间:2021-06-15 17:50:51    阅读次数:0
C. Number of Pairs(排序+二分)
You are given an array aa of nn integers. Find the number of pairs (i,j)(i<j)where the sum of ai+ajai+aj is greater than or equal to l and less than o ...
分类:编程语言   时间:2021-06-13 10:56:21    阅读次数:0
35225条   上一页 1 ... 7 8 9 10 11 ... 3523 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!