摘要:
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param height int整型一维数组 * @return int整型 */ public int max 阅读全文
摘要:
最长无重复子数组 import java.util.*; public class Solution { /** * * @param arr int整型一维数组 the array * @return int整型 */ public int maxLength (int[] arr) { // w 阅读全文
摘要:
import java.util.*; /** * Definition for an interval. * public class Interval { * int start; * int end; * Interval() { start = 0; end = 0; } * Interva 阅读全文
摘要:
import java.util.*; public class Solution { public void merge(int A[], int m, int B[], int n) { //新建数组C,比较数组A和B的元素,把最小放入C中 //最小的数字所在数组指针后移动 int[] C = 阅读全文