c solution
\n    int numOfPairs(char ** nums, int numsSize, char * target)\n    {\n        \n        int count = 0;\n        \n        char arr = (char )malloc(sizeof(char
\n    int numOfPairs(char ** nums, int numsSize, char * target)\n    {\n        \n        int count = 0;\n        \n        char *arr = (char *)malloc(sizeof(char) * (strlen(target)+1) );\n        for(int i = 0 ; i < numsSize ; i++)\n        {\n            for ( int j = 0 ; j < numsSize ; j++)\n            {\n                if ( i != j && (strlen(nums[i])+strlen(nums[j]) == strlen(target)) )\n                {\n                    strcpy(arr,  nums[i]);\n                    strcpy(arr+strlen(nums[i]) , nums[j] );\n                    if ( strcmp(arr , target ) == 0 )\n                        count++;\n                                 \n                }\n            }\n        }\n        \n        \n        return count;\n        \n        \n    }\n                                       \n    \n                \n            \n                \n        \n    \n
[]