Array Introduction
What is
Fixed Length
int[] arr = new int[]{1,2,3}// implicit length declaration of 3
int[] arr = new int[3]; // explicit length declarationPrimitive Array
/*
* Primitive array creation,
* the elements are of primitive datatype.
* so it does not have any methods,
* so arr[0].compareTo(arr[1]) is syntactically wrong
*
* */
int[] arr_primitive_types = new int[]{1, 2, 3};
//arr_primitive_types[0].compareTo(arr_primitive_types[1]);
// syntactically wrongObject Array
Arrays Utils Class
Subsequence of Array
All Subsequences
Calculate Running Time(Quiz)
Is Subsequence
Brute Force
Two-Pointers
Subarray
All Subarray
Calculate Running Time(Quiz)
Longest Increasing Subarray
Brute Force
(Sliding Window) Two-Pointers
A Summary
Maximum Product of a Non-Empty Subset of an Array
Last updated