Most Unique Elements (Part 1 :)

Your goal is to find unlikely characters in a group of strings.

Given a list of strings, select the strings where the most common character has the smallest proportion in its string. If multiple strings have the same proportion, select all the strings with the smallest proportion.

Return a new string composed of the characters that are only present in the selected strings.

❤️‍ Thanks a lot to the friend who shared the source! ❤️‍

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Input Variables
Execution Result: