iiitv / ChefLib

CodeChef Rated Contest Solutions
https://iiitv.github.io/ChefLib/
62 stars 62 forks source link

MINPERM (SEPT17) [C] #253

Closed DivyeshPuri closed 6 years ago

DivyeshPuri commented 6 years ago

Fixes #188

aashutoshrathi commented 6 years ago

Hi! Thanks for contributing to this repository. Make sure you have checked points in PR correctly.

aashutoshrathi commented 6 years ago

Comment on 1593fd36c3b4df1540480368b86500bde6ec35d0, file 2017/SEPT/SEPT17/MINPERM/MINPERM.c, line 29.

Line contains following spacing inconsistencies:

Origin: SpaceConsistencyBear, Section: c/cpp spacing.

The issue can be fixed by applying the following patch:

--- a/tmp/tmpaoj50wjy/2017/SEPT/SEPT17/MINPERM/MINPERM.c
+++ b/tmp/tmpaoj50wjy/2017/SEPT/SEPT17/MINPERM/MINPERM.c
@@ -26,7 +26,7 @@
            }
            j = arr[n - 1];
            arr[n - 1] = arr[n];
-           arr[n] = j; 
+           arr[n] = j;
        }
        for(i = 1; i <= n; i++) {
            printf("%d ",arr[i]);