码迷,mamicode.com
首页 >  
搜索关键字:single number    ( 31458个结果
px to rem插件 使用
这里选择的是px to rem插件,使用步骤: 1、首先,安装px to rem插件; 2、然后,在设置->用户设置中->扩展中找到【px to rem】; 如图: 3、或者直接在setting.json中配置 1 2 "px-to-rem.px-per-rem": 75, "px-to-rem.n ...
分类:其他好文   时间:2020-06-30 00:38:39    阅读次数:176
1399. Count Largest Group
Given an integer n. Each number from 1 to n is grouped according to the sum of its digits. Return how many groups have the largest size. 对1-n的数分组,分组规则 ...
分类:其他好文   时间:2020-06-29 20:18:12    阅读次数:73
Centos进入单用户修改root密码
1、在开机过程中,出现选择centos的具体系统选项界面时按e键,进入编辑界面。2、按方向键下键↓,找到有个设置语言的地方,如LANG=en_US.UTF-8,在后面追加" rw single init=/bin/bash"(不包括引号,但是注意空格)然后按ctrl+x系统会自动重启。3、系统自动无 ...
分类:其他好文   时间:2020-06-29 18:51:04    阅读次数:92
MySQL 5.7 - 常见数据类型
数据类型是数据库的一个重要组成部分,在MySQL数据库中可将数据类型分为三大类:Text类型(文本类型)、Number类型(数字类型)、Date类型(日期类型)。
分类:数据库   时间:2020-06-29 17:20:30    阅读次数:268
typescript 基础类型
tuple // 一项数组的项数已知,其中每一项的类型也已知 const arr: [string,number,string] = ['1',1,'1'] unknow any // any类型 变量可以进行任意赋值,实例化,函数执行 // unknown类型 只允许赋值,不允许实例化,函数执行 ...
分类:其他好文   时间:2020-06-29 17:18:55    阅读次数:54
Prometheus安装
环境 系统:CentOS 7.5软件:prometheus-2.18.1.linux-amd64.tar.gz 安装 下载二进制包地址:https://prometheus.io/download/ 安装 # tar -xzvf prometheus-2.18.1.linux-amd64.tar.g ...
分类:其他好文   时间:2020-06-29 17:09:15    阅读次数:88
只出现一次的数字
问题 ps:部分代码参考leetcode和剑指offer。另外,三道题目都可以通过HashMap和Hashset做 1、只出现一次的数字 给定一个非空整数数组,除了某个元素只出现一次以外,其余每个元素均出现两次。找出那个只出现了一次的元素。 def singleNumber(nums): """ 异 ...
分类:其他好文   时间:2020-06-29 16:53:37    阅读次数:60
1051. Height Checker
Students are asked to stand in non-decreasing order of heights for an annual photo. Return the minimum number of students that must move in order for ...
分类:其他好文   时间:2020-06-29 15:25:43    阅读次数:59
js精确到指定位数的小数
将数字四舍五入到指定的小数位数。使用 Math.round() 和模板字面量将数字四舍五入为指定的小数位数。 省略第二个参数 decimals ,数字将被四舍五入到一个整数。 const round = (n, decimals = 0) => Number(`${Math.round(`${n}e ...
分类:Web程序   时间:2020-06-29 11:47:16    阅读次数:77
leetcode 268. Missing Number
1. class Solution { public: int missingNumber(vector<int>& nums) { sort(nums.begin(),nums.end()); for(int i=0;i<nums.size();++i) { if(nums[i]!=i) retu ...
分类:其他好文   时间:2020-06-29 11:35:36    阅读次数:47
31458条   上一页 1 ... 90 91 92 93 94 ... 3146 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!