以下のnotebookに基づいて、chatGPTが書きました。 プロンプト変えたら、熱心な先生のようになりました。 ちょっとくどいかな。 「Pythonに興味があるけど、自分には無理かも…」そんなふうに思ったことはありませんか?でも、今日は安心してください!
# Given an array of strings strs, group all anagrams together into sublists. You may return the output in any order. # An anagram is a string that contains the exact same characters as another string, ...
# A palindrome is a word that reads the same forward and backwards (eg, "racecar", "tacocat"). An anagram is a rescrambling of a word (eg for "racecar", you could rescramble this as "arceace"). # ...