4 ms·
The problem is that if you do that, you have to test every word (~42k) against every pangram (~16k) to see if it's a subset. I just wrote two quick test progra
by llimllib 3y ago
The problem is that if you do that, you have to test every word (~42k) against every pangram (~16k) to see if it's a subset.
I just wrote two quick test programs to find the score of the set of words for every pangrams, and my approach takes 6s vs 15s for your proposed approach: https://gist.github.com/llimllib/cc01daa8be8ced13ddeb6c76cf115fcc https://gist.github.com/llimllib/cc01daa8be8ced13ddeb6c76cf1...