Given an array nums of positive integers of size N. Find all distinct digits present in nums. Example 1: Input: nums = [131, 11, 48] Output: 1 3 4 8 Explanation: 1, 3, 4, and 8 are only distinct digits that can be extracted from the numbers of the array.
nandhini-1402 / distinct-numbers-in-an-array Goto Github PK
View Code? Open in Web Editor NEWGiven an array nums of positive integers of size N. Find all distinct digits present in nums. Example 1: Input: nums = [131, 11, 48] Output: 1 3 4 8 Explanation: 1, 3, 4, and 8 are only distinct digits that can be extracted from the numbers of the array.