2 ms·
I agree with you about A and C, but not your reason for discounting D. In particular, https://doc.rust-lang.org/1.0.0/unicode/str/trait.UnicodeStr.html#tymetho
by Arnavion 8y ago
I agree with you about A and C, but not your reason for discounting D.
In particular, https://doc.rust-lang.org/1.0.0/unicode/str/trait.UnicodeStr.html#tymethod.words https://doc.rust-lang.org/1.0.0/unicode/str/trait.UnicodeStr... is an ancient counter-example (it was replaced by split_whitespace).
- true_religion 8y agoCounting words isnt strictly the same thing as counting spaces, so without knowing Javascript, you can still guess that it is wrong. Most of their questions are like SAT questions. They require you have some knowledge about the field in general, then place the answer within the wording of the question itself, or allow logic to determine the right answer.