mirror of https://github.com/TheAlgorithms/C
fix lgtm error - lexicographic_permutations
41e2711683/files/misc/lexicographic_permutations.c (x2d1d13a31e62af9e)
:1
This commit is contained in:
parent
17c5523129
commit
20bab2a5ae
|
@ -50,8 +50,9 @@ void PrintSortedPermutations(char *str)
|
|||
|
||||
int main()
|
||||
{
|
||||
int n; // size of string
|
||||
scanf("%d\n", &n);
|
||||
unsigned int n; // size of string
|
||||
scanf("%u\n", &n);
|
||||
|
||||
char *str = (char *)malloc(n * sizeof(char));
|
||||
scanf("%s", str);
|
||||
PrintSortedPermutations(str);
|
||||
|
|
Loading…
Reference in New Issue