Message on Whatsapp 8879355057 for DSA(OA + Interview) + Fullstack Dev Training + 1-1 Personalized Mentoring to get 10+LPA Guaranteed Job
0 like 0 dislike
Given an array of length n. find the maximum pair sum which don't have common digits.
Example : n=6 , nums=[53,1,36,103,53,5]
in this case answer is 103+5 as they don't have common digits and maximum sum.
n<=10^5, nums[i]<=10^9
Note : if you can't find a pair, return -1;
in Online Assessments by Expert (119,150 points) | 394 views

Please log in or register to answer this question.