Array and String - Introduction to Array from java to Go
Operations in Array https://leetcode.com/explore/learn/card/array-and-string/201/introduction-to-array/1143/ Java // "static void main" must be defined in a public class. public class Main { public static void main(String[] args) { // 1. Initialize int[] a0 = new int[5]; int[] a1 = {1, 2, 3}; // 2. Get Length System.out.println("The size of a1 is: " + a1.length); // 3. Access Element System.out...
Go/Leet Code
2022. 3. 22. 16:47