Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
 Alex
An empty string isn't an anagram

Alex

Oct 8, 2023

By definition an anagram has to be a word or set of words that can be re-arranged into another word or set of words. An empty string isn't a word and can't be rearranged

0

0

Comments
Comments
J
joshualross+designgurus a year ago

not only that, but the problem description states that s and t must be of length 1 or greater.