You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1' ...
分类:
其他好文 时间:
2018-01-13 20:50:13
阅读次数:
117
#week9 Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays. Example 1: Input: A: [1,2,3,2,1] B: [3, ...
分类:
其他好文 时间:
2018-01-13 11:09:31
阅读次数:
156
来源:Matlab中文论坛 % 字符串处理 a=' a';b='b b';c='cccc';m='' % 获取字符串长度 length(a) % 连接两个字符串,每个字符串最右边的空格被裁切 d=strcat(a,c) length(d) % 连接多行字符串,每行长度可不等,自动把非最长字符串最右边 ...
分类:
其他好文 时间:
2018-01-12 21:24:40
阅读次数:
151
这段时间在准备找一份java实习工作,所以来把基础知识整理归纳一下 文章结构: 1.equals和== 2.字符串的基本知识以及字符串的源码解读; 3.字符串的注意点以及使用推荐; 一、equals和== 概述: 1、 ==对于基本类型是比较其值,对于引用类型是比较地址,地址也可以是一个基本类型的值 ...
分类:
编程语言 时间:
2018-01-12 13:24:18
阅读次数:
176
二级联动代码实现 arrays.xml文件: 点击变颜色: <item android:color="@android:color/darker_gray" android:state_checked="false" /> <item android:color="@color/c_1E7FFF" ...
分类:
其他好文 时间:
2018-01-12 11:36:10
阅读次数:
159
Math类:数学工具类,做一些数学计算,开方,对数,三角函数等 所有方法都是静态方法,不需要建立对象,直接用类名调用即可 示例: 这里写几个在日常开发中会用到的,比如三角函数之类的平时不会用到,了解即可 Arrays类:数组工具类,帮助我们对数组进行一些操作: 有些方法可以在日常开发中为我们节省很多 ...
分类:
编程语言 时间:
2018-01-12 11:32:33
阅读次数:
144
磁盘阵列RAID原理、种类及性能优缺点对比 原文:http://www.cnblogs.com/chuncn/p/6008173.html 磁盘阵列(Redundant Arrays of Independent Disks,RAID) 1. 存储的数据一定分片; 2. 分基于软件的软RAID(如m ...
分类:
其他好文 时间:
2018-01-12 01:31:41
阅读次数:
235
前言:流提供了一种让我们可以在比集合更高的概念级别上指定计算的数据视图。如: 流的版本更易于阅读,流遵循了“做什么而非怎么做”的原则。 一、什么是流 Stream 不是集合元素,它不是数据结构并不保存数据,它是有关算法和计算的,它更像一个高级版本的 Iterator。原始版本的 Iterator,用 ...
分类:
编程语言 时间:
2018-01-11 15:33:38
阅读次数:
291
import java.util.Arrays; import java.util.Comparator; public class LengthComparator implements Comparator { @Override public int compare(String first,... ...
分类:
其他好文 时间:
2018-01-10 20:10:13
阅读次数:
94
转载:https://useyourloaf.com/blog/swift-guide-to-map-filter-reduce/ Using map, filter or reduce to operate on Swift collection types such as Array or Di ...
分类:
编程语言 时间:
2018-01-10 13:59:22
阅读次数:
219