3 ms·
oops but then I just realized what if string has numbers in it. I guess I would spend time trying to catch the different edge cases in my understanding of the q
by bryanrasmussen 4y ago
oops but then I just realized what if string has numbers in it. I guess I would spend time trying to catch the different edge cases in my understanding of the question and at the end he would be like this guy struggled and did it wrong, when I just think they don't know letters are nouns.
on edit: hmm, a number is also a noun so I guess if query(9) or query("9") worked wouldn't have a problem, but then if it didn't I would have to say hey your dictionary is broken and then there would probably be discussions. But since it is all just hypothetical I suppose I could assume that the dictionary isn't broken and so any trimmed string with more than two characters in it would still return true.
- rendall 4y agoIf it had numbers I think you could immediately assume it is not 2 words.