public static void main(String[] args){ String[] a = new String[]{"1","5","3","7"}; String[] b = new String[]{"2","3","4"}; String[] arrResult = arrContrast(a, b); …
Given an array of integers nums sorted in ascending order, find the starting and ending position of a given targetvalue.Your algorithm's runtime complexity must be in the order of O(log n). If the target is not found in the array, return [-1, -1]. Ex…