码迷,mamicode.com
首页 >  
搜索关键字:consecutive numbers    ( 8082个结果
stylus
stylus是什么? 1. stylus是css预处理器,具有对css可编程,编写快速便捷的特性. 2. stylus源自于Node.js ,2010年产生 , 主要用来给Node项目进行css预处理支持 . stylus应用场景? 1.标准的stylus语法就是没有花括号,没有分号,没有冒号 , ...
分类:其他好文   时间:2020-06-11 13:22:35    阅读次数:92
字符串格式化:数字转成英文格式
1 function formatNumber1 (number) { const base = 3 number = Number(number) // 只要包含字符 都会转为NaN let numberStr = number.toString() // NaN => 'NaN' if (num ...
分类:其他好文   时间:2020-06-09 16:12:47    阅读次数:71
append对len和cap的影响
package main import "fmt" func main() { var numbers []int printSlice(numbers) /* 允许向空切片追加元素 */ numbers = append(numbers, 0) printSlice(numbers) /* 向切片 ...
分类:移动开发   时间:2020-06-09 09:21:48    阅读次数:69
只出现一次的数字 III
复习了原码、反码、补码,位运算(尤其是异或,Java记作【^】) a^b=b^a a^0=a a^a=0 a^b=c > a^b^b=c^b > a=c^b 注意:位运算时,符号位也是参与运算的。 给定一个整数数组 nums,其中恰好有两个元素只出现一次,其余所有元素均出现两次。 找出只出现一次的那 ...
分类:其他好文   时间:2020-06-06 21:56:13    阅读次数:77
Leetcode 128 最长连续序列
地址 https://leetcode-cn.com/problems/longest-consecutive-sequence/ 给定一个未排序的整数数组,找出最长连续序列的长度。 要求算法的时间复杂度为 O(n)。 示例: 输入: [100, 4, 200, 1, 3, 2] 输出: 4 解释: ...
分类:其他好文   时间:2020-06-06 21:23:22    阅读次数:54
简述TCP三次握手和四次挥手过程
TCP握手协议 在TCP/IP协议中,TCP协议提供可靠的连接服务,采用三次握手建立一个连接.第一次握手:建立连接时,客户端发送syn包(syn=j)到服务器,并进入SYN_SEND状态,等待服务器确认; SYN:同步序列编号(Synchronize Sequence Numbers)第二次握手:服 ...
分类:其他好文   时间:2020-06-06 11:17:49    阅读次数:50
个人记录-LeetCode 77. Combinations
问题:Given two integers n and k, return all possible combinations of k numbers out of 1 … n. For example,If n = 4 and k = 2, a solution is: [ [2,4], [3, ...
分类:其他好文   时间:2020-06-06 01:16:22    阅读次数:93
PAT.1066 Root of AVL Tree(平衡树模板题)
1066 Root of AVL Tree (25分) An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node diff ...
分类:其他好文   时间:2020-06-05 23:18:28    阅读次数:73
html element and list
Block element Block elements, or block-level elements, have a rectangular structure. By default, these elements will span the entire width of its pare ...
分类:Web程序   时间:2020-06-05 21:12:41    阅读次数:89
1365. How Many Numbers Are Smaller Than the Current Number
package LeetCode_1365 import java.util.* /** * 1365. How Many Numbers Are Smaller Than the Current Number * https://leetcode.com/problems/how-many-num ...
分类:其他好文   时间:2020-06-04 19:56:56    阅读次数:67
8082条   上一页 1 ... 17 18 19 20 21 ... 809 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!