JAVA
4. To which complexity class does the following algorithm belong? Consider N to be the length or size of the array or collection passed to the method. Explain your reasoning. public static int[] mysteryl(int[] list) ( int[] result = new int [2 * list.length); for (int í 0; i < list. length; i++) { result[2 * İjs list [1] / 2 + list[1]
OR
OR