Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20s solution #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

utkarshgupta137
Copy link

Since we've 26 alphabets & we want to use 25 of them, the main idea is to consider all combinations while ignoring all the words from 1 of the alpabets.

With 25 alphabets left, we first find the alphabet with the least number of words (q, x, j, z, v....).
Then, we consider all the words of this alphabet. For each word, we remove all the words that contain any of the alphabets in the current word, then repeat the process for the remaining 20 alphabets & the remaining words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant