leetcode Group Anagrams

重点columnSizes 返回值!!!!!

/**
* Return an array of arrays of size *returnSize.
* The sizes of the arrays are returned as *columnSizes array.
* Note: Both returned array and *columnSizes array must be malloced, assume caller calls free().
*/

char*** groupAnagrams(char** strs, int strsSize, int** columnSizes, int* returnSize) {
    
    int comp(const void *a , const void *b ){
return *(int *)a - *(int *)b; //升序排
    }


    
    
    
    int can[10000][100];
    int len[10000];
    
    for(int i=0;i

你可能感兴趣的:(leetcode Group Anagrams)