["hello", "hey"]应该返回false,因为字符串"hello"并不包含字符"y"。
["Alien", "line"]应该返回true,因为"line"中所有字符都可以在"Alien"找到。
mutation(["hello", "hey"]) //应该返回 false.
mutation(["zyxwvutsrqponmlkjihgfedcba", "qrstu"]) //应该返回 true.
mutation(["Mary", "Aarmy"]) //应该返回 true.
mutation(["Alien", "line"]) //应该返回 true.
mutation(["floor", "for"]) //应该返回 true.
mutation(["hello", "neo"]) //应该返回 false.
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
上述代码通俗化,就是把big降低点=》
没看懂你的思路,按我的理解,这样写应该就是实现的你的需求: