Given a set of words, find whether they form word box.
A list of words can form a valid word box, when arranged horizontally forms same words if you read vertically.
Ex: BASS, AUTO, STAR, SORE
BASS
AUTO
STAR
SORE
Read full article from Word Box | LeetCode Discuss
No comments:
Post a Comment