We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf124ed commit 94462f2Copy full SHA for 94462f2
leetcode/src/38.c
@@ -10,7 +10,7 @@ char * countAndSay(int n){
10
int k, j, count, convert = (int) result;
11
12
//Creating array with the length calculated above
13
- char * arr = malloc(result + 4);
+ char * arr = malloc(convert + 4);
14
arr[0] = '1';
15
arr[1] = '\0';
16
0 commit comments