Package com_github_leetcode
Class CommonUtils
java.lang.Object
com_github_leetcode.CommonUtils
public class CommonUtils
extends java.lang.Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancompareArray(int[] arr1, int[] arr2) static booleancompareArray(java.util.List<java.lang.Integer> arr1, java.util.List<java.lang.Integer> arr2) static booleancompareMatrix(java.util.List<java.util.List<java.lang.Integer>> mt1, java.util.List<java.util.List<java.lang.Integer>> mt2) static java.util.List<java.lang.String> convertLeetCode1DStringArrayInputIntoJavaArray(java.lang.String input) static java.util.List<java.util.List<java.lang.String>> convertLeetCode2DStringArrayInputIntoJavaArray(java.lang.String input) static int[][]convertLeetCodeIrregularLengths2DArrayInputIntoJavaArray(java.lang.String input) static char[][]convertLeetCodeRegular2DCharArrayInputIntoJavaArray(java.lang.String input) static int[][]convertLeetCodeRegularRectangleArrayInputIntoJavaArray(java.lang.String input) static voidprintArray(double[] nums) static voidprintArray(int[] nums) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CommonUtils
public CommonUtils()
-
-
Method Details
-
printArray
public static void printArray(int[] nums) -
printArray
public static void printArray(double[] nums) -
compareArray
public static boolean compareArray(int[] arr1, int[] arr2) -
compareArray
public static boolean compareArray(java.util.List<java.lang.Integer> arr1, java.util.List<java.lang.Integer> arr2) -
compareMatrix
public static boolean compareMatrix(java.util.List<java.util.List<java.lang.Integer>> mt1, java.util.List<java.util.List<java.lang.Integer>> mt2) -
convertLeetCodeRegular2DCharArrayInputIntoJavaArray
public static char[][] convertLeetCodeRegular2DCharArrayInputIntoJavaArray(java.lang.String input) -
convertLeetCodeRegularRectangleArrayInputIntoJavaArray
public static int[][] convertLeetCodeRegularRectangleArrayInputIntoJavaArray(java.lang.String input) -
convertLeetCodeIrregularLengths2DArrayInputIntoJavaArray
public static int[][] convertLeetCodeIrregularLengths2DArrayInputIntoJavaArray(java.lang.String input) -
convertLeetCode2DStringArrayInputIntoJavaArray
public static java.util.List<java.util.List<java.lang.String>> convertLeetCode2DStringArrayInputIntoJavaArray(java.lang.String input) -
convertLeetCode1DStringArrayInputIntoJavaArray
public static java.util.List<java.lang.String> convertLeetCode1DStringArrayInputIntoJavaArray(java.lang.String input)
-