##
Find the largest multiple of 3 from array of digits | Set 2 (In O(n) time and O(1) space)
April 2, 2017

Given an array of digits (contain elements from 0 to 9). Find the largest number that can be made from some or all digits of array and is divisible by 3. The same element may appear multiple times in the array, but each element in the array may only be used once. Examples: Input :… Read More »