Technical
Given a list of words, find the number of prefix pairs, i.e. pairs i, j where words[i] == words[j] or words[i].startswith(words[j]) or words[j].startswith(words[i]).
Top community answer
No community answers yet.
Contribute an answerHave a better answer?
Share your experience and earn credits toward your next interview session.
Contribute an answer