diff --git a/.clang-format b/.clang-format index 3e5f49c..eb00a58 100644 --- a/.clang-format +++ b/.clang-format @@ -1 +1 @@ -BasedOnStyle: Microsoft \ No newline at end of file +BasedOnStyle: Microsoft diff --git a/src/119.c b/src/119.c index 8957082..37e8ffb 100644 --- a/src/119.c +++ b/src/119.c @@ -22,4 +22,4 @@ int *getRow(int rowIndex, int *returnSize) int main() { -} \ No newline at end of file +} diff --git a/src/1233.c b/src/1233.c index 54668a7..53a572c 100644 --- a/src/1233.c +++ b/src/1233.c @@ -27,4 +27,4 @@ char **removeSubfolders(char **folder, int folderSize, int *returnSize) } return ret; -} \ No newline at end of file +} diff --git a/src/1290.c b/src/1290.c index 809079e..ec2d521 100644 --- a/src/1290.c +++ b/src/1290.c @@ -9,4 +9,4 @@ int getDecimalValue(struct ListNode *head) head = head->next; } return x; -} \ No newline at end of file +} diff --git a/src/1534.c b/src/1534.c index 42caa57..f964e11 100644 --- a/src/1534.c +++ b/src/1534.c @@ -14,4 +14,4 @@ int countGoodTriplets(int *arr, int arrSize, int a, int b, int c) count++; return count; -} \ No newline at end of file +} diff --git a/src/168.c b/src/168.c index 5a816f9..63320f8 100644 --- a/src/168.c +++ b/src/168.c @@ -35,4 +35,4 @@ int main() printf("%s\n", ans); free(ans); return 0; -} \ No newline at end of file +} diff --git a/src/171.c b/src/171.c index 62b117c..1e9fd81 100644 --- a/src/171.c +++ b/src/171.c @@ -22,4 +22,4 @@ int main() assert(titleToNumber("ZY") == 701); return 0; -} \ No newline at end of file +} diff --git a/src/1717.c b/src/1717.c index df17b03..8bc467e 100644 --- a/src/1717.c +++ b/src/1717.c @@ -88,4 +88,4 @@ int maximumGain(char *s, int x, int y) del(del(s, 'b', 'a', &score, y), 'a', 'b', &score, x); return score; -} \ No newline at end of file +} diff --git a/src/1900.c b/src/1900.c index 4a96a29..401335d 100644 --- a/src/1900.c +++ b/src/1900.c @@ -3,4 +3,4 @@ int *earliestAndLatest(int n, int firstPlayer, int secondPlayer, int *returnSize) { return 0; -} \ No newline at end of file +} diff --git a/src/1957.c b/src/1957.c index 87387f8..a71d2ae 100644 --- a/src/1957.c +++ b/src/1957.c @@ -10,4 +10,4 @@ char *makeFancyString(char *s) for (int j = i; j < len - 1; j++) s[j] = s[j + 1]; return s; -} \ No newline at end of file +} diff --git a/src/2163.c b/src/2163.c index 2b2bbd5..46b2a1a 100644 --- a/src/2163.c +++ b/src/2163.c @@ -1,4 +1,4 @@ #include long long minimumDifference(int *nums, int numsSize) { -} \ No newline at end of file +} diff --git a/src/219.c b/src/219.c index 9445b96..59262bc 100644 --- a/src/219.c +++ b/src/219.c @@ -29,4 +29,4 @@ int main() assert(containsNearbyDuplicate(nums2, sizeof(nums2) / sizeof(int), 1) == true); int nums3[] = {1, 2, 3, 1, 2, 3}; assert(containsNearbyDuplicate(nums3, sizeof(nums3) / sizeof(int), 2) == false); -} \ No newline at end of file +} diff --git a/src/225.c b/src/225.c index fb800f5..00f86bb 100644 --- a/src/225.c +++ b/src/225.c @@ -65,4 +65,4 @@ int main() assert(myStackEmpty(s) == false); return 0; -} \ No newline at end of file +} diff --git a/src/228.c b/src/228.c index cd4d45c..2d7a132 100644 --- a/src/228.c +++ b/src/228.c @@ -122,4 +122,4 @@ int main() free(s); return 0; -} \ No newline at end of file +} diff --git a/src/231.c b/src/231.c index 1a1a602..fc4fa51 100644 --- a/src/231.c +++ b/src/231.c @@ -24,4 +24,4 @@ int main() assert(isPowerOfTwo(2) == true); assert(isPowerOfTwo(0) == false); assert(isPowerOfTwo(1) == true); -} \ No newline at end of file +} diff --git a/src/232.c b/src/232.c index dcbe432..ef2ef8b 100644 --- a/src/232.c +++ b/src/232.c @@ -69,4 +69,4 @@ void myQueueFree(MyQueue *obj) free(obj->s1); free(obj->s2); free(obj); -} \ No newline at end of file +} diff --git a/src/2410.c b/src/2410.c index 70e116d..74010e0 100644 --- a/src/2410.c +++ b/src/2410.c @@ -27,4 +27,4 @@ int matchPlayersAndTrainers(int *players, int playersSize, int *trainers, int tr } return match; -} \ No newline at end of file +} diff --git a/src/263.c b/src/263.c index 2e967a0..0fb6267 100644 --- a/src/263.c +++ b/src/263.c @@ -28,4 +28,4 @@ int main() assert(isUgly(14) == 0); assert(isUgly(8) == 1); return 0; -} \ No newline at end of file +} diff --git a/src/268.c b/src/268.c index 3b0efd1..6e11c97 100644 --- a/src/268.c +++ b/src/268.c @@ -36,4 +36,4 @@ int main() fail: return -1; -} \ No newline at end of file +} diff --git a/src/2712.c b/src/2712.c index e74163a..b5b027a 100644 --- a/src/2712.c +++ b/src/2712.c @@ -15,4 +15,4 @@ long long minimumCost(char *s) ans += min(i, n - i); return ans; -} \ No newline at end of file +} diff --git a/src/278.c b/src/278.c index d4f0db4..d01bc1a 100644 --- a/src/278.c +++ b/src/278.c @@ -45,4 +45,4 @@ int main() return 0; fail: return -1; -} \ No newline at end of file +} diff --git a/src/290.c b/src/290.c index 9d76337..94d00fc 100644 --- a/src/290.c +++ b/src/290.c @@ -70,4 +70,4 @@ bool wordPattern(char *pattern, char *s) freeDict(d); return true; -} \ No newline at end of file +} diff --git a/src/2974.c b/src/2974.c index 59e9402..bd6b257 100644 --- a/src/2974.c +++ b/src/2974.c @@ -49,4 +49,4 @@ int *numberGame(int *nums, int numsSize, int *returnSize) printf("%d ", result[i]); return result; -} \ No newline at end of file +} diff --git a/src/303.c b/src/303.c index 806f490..f7de77a 100644 --- a/src/303.c +++ b/src/303.c @@ -41,4 +41,4 @@ void numArrayFree(NumArray *obj) { free(obj->data); free(obj); -} \ No newline at end of file +} diff --git a/src/3110.c b/src/3110.c index 2e4a394..6514cd1 100644 --- a/src/3110.c +++ b/src/3110.c @@ -18,4 +18,4 @@ int main() { assert(scoreOfString("hello") == 13); assert(scoreOfString("zaz") == 50); -} \ No newline at end of file +} diff --git a/src/3136.c b/src/3136.c index f1b93bf..c849459 100644 --- a/src/3136.c +++ b/src/3136.c @@ -30,4 +30,4 @@ bool isValid(char *word) return false; return haveVowel && haveConsonant; -} \ No newline at end of file +} diff --git a/src/3169.c b/src/3169.c index 79ffeac..0df1dec 100644 --- a/src/3169.c +++ b/src/3169.c @@ -39,4 +39,4 @@ int countDays(int days, int **meetings, int meetingsSize, int *meetingsColSize) return count + days - meetings[meetingsSize - 1][1]; return count; -} \ No newline at end of file +} diff --git a/src/3201.c b/src/3201.c index acaf616..5b44756 100644 --- a/src/3201.c +++ b/src/3201.c @@ -10,4 +10,4 @@ int maximumLength(int *nums, int numsSize) nums[i] & 1 ? (odd = even + 1, odd_cnt++) : (even = odd + 1); return max(max(even, odd), max(odd_cnt, numsSize - odd_cnt)); -} \ No newline at end of file +} diff --git a/src/3202.c b/src/3202.c index cc131b4..5ed9ec9 100644 --- a/src/3202.c +++ b/src/3202.c @@ -2,4 +2,4 @@ int maximumLength(int *nums, int numsSize, int k) { -} \ No newline at end of file +} diff --git a/src/326.c b/src/326.c index 7a80d1a..a9537ef 100644 --- a/src/326.c +++ b/src/326.c @@ -20,4 +20,4 @@ bool isPowerOfThree(int n) // 我们只需要判断 n 是否是 3^19 的约数即可。 return n > 0 && 1162261467 % n == 0; #endif -} \ No newline at end of file +} diff --git a/src/338.c b/src/338.c index 1e26dd0..7001599 100644 --- a/src/338.c +++ b/src/338.c @@ -10,4 +10,4 @@ int *countBits(int n, int *returnSize) int main() { return 0; -} \ No newline at end of file +} diff --git a/src/3427.c b/src/3427.c index 6257dcd..88a3cfe 100644 --- a/src/3427.c +++ b/src/3427.c @@ -12,4 +12,4 @@ int subarraySum(int *nums, int numsSize) for (int j = max(0, i - nums[i]); j <= i; j++) sum += nums[j]; return sum; -} \ No newline at end of file +} diff --git a/src/345.c b/src/345.c index 36d403e..8acdae6 100644 --- a/src/345.c +++ b/src/345.c @@ -29,4 +29,4 @@ char *reverseVowels(char *s) } return s; -} \ No newline at end of file +} diff --git a/src/367.c b/src/367.c index 0d35577..caec0ac 100644 --- a/src/367.c +++ b/src/367.c @@ -13,4 +13,4 @@ bool isPerfectSquare(int num) if (i * i == num) return true; } -} \ No newline at end of file +} diff --git a/src/374.c b/src/374.c index 07b8074..a1f0031 100644 --- a/src/374.c +++ b/src/374.c @@ -49,4 +49,4 @@ int main() fail: return -1; -} \ No newline at end of file +} diff --git a/src/387.c b/src/387.c index da51b7c..4e136e9 100644 --- a/src/387.c +++ b/src/387.c @@ -14,4 +14,4 @@ int firstUniqChar(char *s) return idx; return -1; -} \ No newline at end of file +} diff --git a/src/392.c b/src/392.c index 8991d8f..5ea9973 100644 --- a/src/392.c +++ b/src/392.c @@ -7,4 +7,4 @@ bool isSubsequence(char *s, char *t) s++; return !*s; -} \ No newline at end of file +} diff --git a/src/lcp_67.c b/src/lcp_67.c index 9f09aef..d090552 100644 --- a/src/lcp_67.c +++ b/src/lcp_67.c @@ -34,4 +34,4 @@ struct TreeNode *expandBinaryTree(struct TreeNode *root) { inorder(root); return root; -} \ No newline at end of file +}