码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
utils:一个通用枚举类
在工作中,以前的枚举类都做的比较简单,直到与公司的一个大佬合作做项目时,看到了一个更加通用且全面的通用枚举类。 且更符合阿里巴巴的java技术规范,特此记录 以上引用自阿里巴巴Java开发手册1.4.0 主要特点如下: 枚举提供序号、值、注释信息 提供构造器和get set方法 提供转换列表的方法, ...
分类:其他好文   时间:2020-07-16 00:19:58    阅读次数:112
【leetcode_easy_array】1380. Lucky Numbers in a Matrix
problem 1380. Lucky Numbers in a Matrix 在矩阵中,如果一个数既是它所在行的最小值,又是它所在列的最大值,则称这个数为幸运数。找到矩阵中所有的幸运数。 Constraints All elements in the matrix are distinct. so ...
分类:其他好文   时间:2020-07-16 00:15:33    阅读次数:72
974. 和可被 K 整除的子数组
方法一:不用统计前缀和,只需要统计前i个数的余数就可以,若之前和的余数和当前和的余数相等则子数组可以整除K,遍历一遍即可 class Solution { public int subarraysDivByK(int[] A, int k) { int n = A.length; Map<Integ ...
分类:编程语言   时间:2020-07-15 23:41:52    阅读次数:64
Swoole 中协程的使用注意事项及协程中的异常捕获
协程使用注意事项 协程内部禁止使用全局变量,以免发生数据错乱; 协程使用 use 关键字引入外部变量到当前作用域禁止使用引用,以免发生数据错乱; 不能使用类静态变量 Class::$array / 全局变量 $_array / 全局对象属性 $object->array / 其他超全局变量 $GLO ...
分类:其他好文   时间:2020-07-15 23:14:15    阅读次数:96
jQuery4——jQuery中的map静态方法,jQuey中的其他静态方法
map静态方法 <script> var arr = [1, 3, 5, 7, 9]; var obj = {0: 1, 1: 3, 2: 5, 3: 7, 4: 9, length: 5}; //利用原生js的map方法遍历 /* 第一个参数:当前遍历的元素 第二个参数:当前遍历的索引 第三个参数 ...
分类:Web程序   时间:2020-07-15 23:03:07    阅读次数:83
go 切片对数组的修改
go中数组是值拷贝, 切片是对上层数组的表示,应该是使用的是数组地址,修改时是直接对原来的数组进行修改 切片作为函数参数依旧如此 var array [5]int=[5]int{1,2,3,4,5}//可以简化为array:=[5]int{1,2,3,4,5} 初学所以没有简化 var slice[ ...
分类:编程语言   时间:2020-07-15 23:02:25    阅读次数:78
base64.js
export default { base64EncodeChars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", base64DecodeChars:new Array(-1, -1, -1, -1, -1, ...
分类:Web程序   时间:2020-07-15 15:14:31    阅读次数:125
Windows设备驱动判断
###Windows驱动 // type.h #ifndef TYPE_H #define TYPE_H #include <setupapi.h> struct wdi_device_info { struct wdi_device_info *next; unsigned short vid; ...
分类:Windows程序   时间:2020-07-15 15:12:57    阅读次数:94
665. Non-decreasing Array
Given an array nums with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element. We define an array is non ...
分类:其他好文   时间:2020-07-15 01:12:51    阅读次数:60
532. K-diff Pairs in an Array
Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte ...
分类:其他好文   时间:2020-07-15 01:00:03    阅读次数:73
29504条   上一页 1 ... 65 66 67 68 69 ... 2951 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!