java [LeetCode] 243. Shortest Word Distance Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list.
java [LeetCode] 487. Max Consecutive Ones II Given a binary array, find the maximum number of consecutive 1s in this array if you can flip at most one 0.
java leetcode330. Patching Array 假设有一个有序的正整数数组nums和一个整数n,最少添加几个元素到这个数组中,使得从1-n的所有整数都可以由这个数组中的值的或是几个值的和构成。
无分类 Python数据科学“冷门”库 Python是一种神奇的语言。事实上,它是近几年世界上发展最快的编程语言之一,它一次又一次证明了它在开发工作和数据科学立场各行业的实用性。整个Python系统和库是对于世界各地的用户(无论是初学者或者高级)都是一…
javascript 数组大概知多少 博客文章链接:数组大概知多少 判断一个变量是否为数组? 可靠地检测数组方法 1.利用Object的toString方法 {代码…} 2.利用ES6的Array.isArray()方法 {代码…} 数组的原生方法有哪些? 会改变自身的方法: copy…