x******9 发帖数: 473 | 1 Anagrams
Given an array of strings, return all groups of strings that are anagrams.
ArrayList anagrams(String[] strs)
那么输入是{"ab","ba","ac","ca"},输出结果应该是什么呢?
默认的return 是不是应该是ArrayList>
求指点 | h*********a 发帖数: 1605 | 2 ab, ba are anagrams
ac, ca are anagrams
right? | i********s 发帖数: 22 | 3 just return {"ab","ba","ac","ca"} together
【在 x******9 的大作中提到】 : Anagrams : Given an array of strings, return all groups of strings that are anagrams. : ArrayList anagrams(String[] strs) : 那么输入是{"ab","ba","ac","ca"},输出结果应该是什么呢? : 默认的return 是不是应该是ArrayList> : 求指点
| x******9 发帖数: 473 | 4 sorry, 是groups of strings.晕倒。
多谢。
【在 i********s 的大作中提到】 : just return {"ab","ba","ac","ca"} together
|
|