Ransom Note
Question
Each letter in the magazine string can only be used once in your note.
Example
Hint
You may assume that both strings contain only lowercase letters.
Answer
solution:
Knowledge:
还是一样使用高级语言的特点,remove删除第一个元素。
这次给我的启示是需要在思考和编程时以数据结构来思考,这样自然会想到方法,比如remove删除。
最后意外发现gitbook屏蔽关键词,返回错误:SyntaxError: Unexpected token ILLEGAL!!!
Last updated
Was this helpful?