package arrays; public class SmallestCommonNumber { /* * Given three integer arrays sorted in ascending order, f * ind the smallest number that is common in all three arrays. * */ /* * Take advantage of the sorted array to reduce complexity. * Runtime Complexity: Linear, O(n). * Memory Complexity: Constant, O(1) * */ public static int findSmallestCommonNumber(int[] arr1, int[] arr2, int[] arr3) { int i=0, j=0, k=0; while (i< arr1.length && j< arr2.length && k