From 1bec6b9f83553d670c1c8fe4f13865ab237e615c Mon Sep 17 00:00:00 2001 From: qq_44193969 <2608882093@qq.com> Date: Mon, 27 Dec 2021 18:10:19 +0800 Subject: [PATCH] optimize exercises --- .../3.python/1.exercises/solution.md" | 2 +- .../3.python/2.exercises/solution.md" | 2 +- .../3.python/3.exercises/solution.md" | 2 +- .../3.python/4.exercises/solution.md" | 2 +- .../1.cpp/22.exercises/solution.md" | 2 +- .../1.cpp/23.exercises/solution.md" | 2 +- .../1.cpp/24.exercises/solution.md" | 2 +- .../1.cpp/25.exercises/solution.md" | 2 +- .../1.cpp/26.exercises/solution.md" | 2 +- .../1.cpp/27.exercises/solution.md" | 2 +- .../1.cpp/28.exercises/solution.md" | 2 +- .../1.cpp/29.exercises/solution.md" | 2 +- .../1.cpp/30.exercises/solution.md" | 2 +- .../1.cpp/31.exercises/solution.md" | 2 +- .../1.cpp/32.exercises/solution.md" | 2 +- .../1.cpp/33.exercises/solution.md" | 2 +- .../1.cpp/34.exercises/solution.md" | 2 +- .../1.cpp/35.exercises/solution.md" | 2 +- .../1.cpp/36.exercises/solution.md" | 2 +- .../1.cpp/37.exercises/solution.md" | 2 +- .../1.cpp/38.exercises/solution.md" | 2 +- .../1.cpp/39.exercises/solution.md" | 2 +- .../1.cpp/40.exercises/solution.md" | 2 +- .../1.cpp/41.exercises/solution.md" | 2 +- .../1.cpp/42.exercises/solution.md" | 2 +- .../1.cpp/43.exercises/solution.md" | 2 +- .../1.cpp/44.exercises/solution.md" | 2 +- .../1.cpp/45.exercises/solution.md" | 2 +- .../1.cpp/46.exercises/solution.md" | 2 +- .../1.cpp/47.exercises/solution.md" | 2 +- .../1.cpp/48.exercises/solution.md" | 2 +- .../1.cpp/49.exercises/solution.md" | 2 +- .../1.cpp/50.exercises/solution.md" | 2 +- .../1.cpp/51.exercises/solution.md" | 2 +- .../1.cpp/52.exercises/solution.md" | 2 +- .../1.cpp/53.exercises/solution.md" | 2 +- .../1.cpp/54.exercises/solution.md" | 2 +- .../1.cpp/55.exercises/solution.md" | 2 +- .../1.cpp/56.exercises/solution.md" | 2 +- .../1.cpp/57.exercises/solution.md" | 2 +- .../1.cpp/58.exercises/solution.md" | 2 +- .../1.cpp/59.exercises/solution.md" | 2 +- .../1.cpp/60.exercises/solution.md" | 2 +- .../1.cpp/61.exercises/solution.md" | 2 +- .../1.cpp/62.exercises/solution.md" | 2 +- .../1.cpp/63.exercises/solution.md" | 2 +- .../1.cpp/64.exercises/solution.md" | 2 +- .../1.cpp/65.exercises/solution.md" | 2 +- .../1.cpp/66.exercises/solution.md" | 2 +- .../1.cpp/67.exercises/solution.md" | 2 +- .../1.cpp/68.exercises/solution.md" | 2 +- .../1.cpp/69.exercises/solution.md" | 2 +- .../1.cpp/70.exercises/solution.md" | 2 +- .../1.cpp/71.exercises/solution.md" | 2 +- .../1.cpp/72.exercises/solution.md" | 2 +- .../1.cpp/73.exercises/solution.md" | 2 +- .../1.cpp/74.exercises/solution.md" | 2 +- .../1.cpp/75.exercises/solution.md" | 2 +- .../1.cpp/76.exercises/solution.md" | 2 +- .../1.cpp/77.exercises/solution.md" | 2 +- .../1.cpp/78.exercises/solution.md" | 2 +- .../1.cpp/79.exercises/solution.md" | 2 +- .../1.cpp/80.exercises/solution.md" | 2 +- .../1.cpp/81.exercises/solution.md" | 2 +- .../1.cpp/82.exercises/solution.md" | 2 +- .../1.cpp/83.exercises/solution.md" | 2 +- .../1.cpp/84.exercises/solution.md" | 2 +- .../1.cpp/85.exercises/solution.md" | 2 +- .../1.cpp/86.exercises/solution.md" | 2 +- .../1.cpp/87.exercises/solution.md" | 2 +- .../3.python/1.exercises/solution.md" | 2 +- .../3.python/2.exercises/solution.md" | 2 +- .../1.cpp/1.exercises/solution.md" | 2 +- .../1.cpp/10.exercises/solution.md" | 2 +- .../1.cpp/11.exercises/solution.md" | 2 +- .../1.cpp/12.exercises/solution.md" | 2 +- .../1.cpp/13.exercises/solution.md" | 2 +- .../1.cpp/14.exercises/solution.md" | 2 +- .../1.cpp/15.exercises/solution.md" | 2 +- .../1.cpp/16.exercises/solution.md" | 2 +- .../1.cpp/18.exercises/solution.md" | 2 +- .../1.cpp/19.exercises/solution.md" | 2 +- .../1.cpp/2.exercises/solution.md" | 2 +- .../1.cpp/20.exercises/solution.md" | 2 +- .../1.cpp/21.exercises/solution.md" | 2 +- .../1.cpp/22.exercises/solution.md" | 2 +- .../1.cpp/23.exercises/solution.md" | 2 +- .../1.cpp/24.exercises/solution.md" | 2 +- .../1.cpp/25.exercises/solution.md" | 2 +- .../1.cpp/3.exercises/solution.md" | 2 +- .../1.cpp/4.exercises/solution.md" | 2 +- .../1.cpp/5.exercises/solution.md" | 2 +- .../1.cpp/6.exercises/solution.md" | 2 +- .../1.cpp/7.exercises/solution.md" | 2 +- .../1.cpp/8.exercises/solution.md" | 2 +- .../1.cpp/9.exercises/solution.md" | 2 +- .../3.python/1.exercises/solution.md" | 2 +- .../3.python/10.exercises/solution.md" | 2 +- .../3.python/11.exercises/solution.md" | 2 +- .../3.python/12.exercises/solution.md" | 2 +- .../3.python/13.exercises/solution.md" | 2 +- .../3.python/14.exercises/solution.md" | 2 +- .../3.python/15.exercises/solution.md" | 2 +- .../3.python/16.exercises/solution.md" | 2 +- .../3.python/17.exercises/solution.md" | 2 +- .../3.python/18.exercises/solution.md" | 2 +- .../3.python/19.exercises/solution.md" | 2 +- .../3.python/2.exercises/solution.md" | 2 +- .../3.python/20.exercises/solution.md" | 2 +- .../3.python/21.exercises/solution.md" | 2 +- .../3.python/3.exercises/solution.md" | 2 +- .../3.python/4.exercises/solution.md" | 2 +- .../3.python/5.exercises/solution.md" | 2 +- .../3.python/6.exercises/solution.md" | 2 +- .../3.python/7.exercises/solution.md" | 2 +- .../3.python/8.exercises/solution.md" | 2 +- .../3.python/9.exercises/solution.md" | 2 +- 117 files changed, 117 insertions(+), 117 deletions(-) diff --git "a/data/1.dailycode\345\210\235\351\230\266/3.python/1.exercises/solution.md" "b/data/1.dailycode\345\210\235\351\230\266/3.python/1.exercises/solution.md" index 307b56593..f0eb777d3 100644 --- "a/data/1.dailycode\345\210\235\351\230\266/3.python/1.exercises/solution.md" +++ "b/data/1.dailycode\345\210\235\351\230\266/3.python/1.exercises/solution.md" @@ -20,7 +20,7 @@ for i in range(n,n+1): if i % 2 == 0: for k in range(2, i): if a(k) == 1 and a(i - k) == 1: - ________________ + ________________; ``` ## template diff --git "a/data/1.dailycode\345\210\235\351\230\266/3.python/2.exercises/solution.md" "b/data/1.dailycode\345\210\235\351\230\266/3.python/2.exercises/solution.md" index d348b9fcd..32e14a8be 100644 --- "a/data/1.dailycode\345\210\235\351\230\266/3.python/2.exercises/solution.md" +++ "b/data/1.dailycode\345\210\235\351\230\266/3.python/2.exercises/solution.md" @@ -8,7 +8,7 @@ n = int(input("输入数字:")) factor = [n] num = 1 -__________________ +__________________; print(factor) m = [str(i) for i in factor] count4 = 0 diff --git "a/data/1.dailycode\345\210\235\351\230\266/3.python/3.exercises/solution.md" "b/data/1.dailycode\345\210\235\351\230\266/3.python/3.exercises/solution.md" index 6d99f537d..45ff7793c 100644 --- "a/data/1.dailycode\345\210\235\351\230\266/3.python/3.exercises/solution.md" +++ "b/data/1.dailycode\345\210\235\351\230\266/3.python/3.exercises/solution.md" @@ -12,7 +12,7 @@ K=0 for i in range(1,N+1): x,y=random(),random() dist =sqrt(x**2+y**2) - _____________________ + _____________________; pi=4*(K/N) print("圆周率值:{}".format(pi)) ``` diff --git "a/data/1.dailycode\345\210\235\351\230\266/3.python/4.exercises/solution.md" "b/data/1.dailycode\345\210\235\351\230\266/3.python/4.exercises/solution.md" index 336abc2c0..216b01714 100644 --- "a/data/1.dailycode\345\210\235\351\230\266/3.python/4.exercises/solution.md" +++ "b/data/1.dailycode\345\210\235\351\230\266/3.python/4.exercises/solution.md" @@ -41,7 +41,7 @@ x2 = x1.split(",") a = [] b = [] for i in x2: - ______________ + ______________; if a == []: print("NONE") else: diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/22.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/22.exercises/solution.md" index 93a9d8297..94bc36e64 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/22.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/22.exercises/solution.md" @@ -26,7 +26,7 @@ int main() { for (int j = 0; j < N - i; j++) printf(" "); - ______________________ + ______________________; printf("\n"); } return 0; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/23.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/23.exercises/solution.md" index d48747e5b..101410a7a 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/23.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/23.exercises/solution.md" @@ -29,7 +29,7 @@ int main() return 0; } int *a = (int *)malloc(sizeof(int) * n); - __________________ + __________________; scanf("%d", &m); if (m < 0 || m >= n) { diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/24.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/24.exercises/solution.md" index c0504fc51..c54e23869 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/24.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/24.exercises/solution.md" @@ -12,7 +12,7 @@ void funShift(int m, char *p, int n) char c; for (int j = 0; j < m; j++) { - _____________________ + _____________________; } } int main() diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/25.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/25.exercises/solution.md" index 1486af4ed..ff2eaab8a 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/25.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/25.exercises/solution.md" @@ -44,7 +44,7 @@ int main() sum = 0; while (a < n) { - __________________ + __________________; if (j == i) { sum += i; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/26.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/26.exercises/solution.md" index 114ecc4c1..2592ae61a 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/26.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/26.exercises/solution.md" @@ -22,7 +22,7 @@ int fun(string str) int score = 0; for (int i = 0; i < str.length(); i++) { - _____________________ + _____________________; } if (index == -1) { diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/27.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/27.exercises/solution.md" index 34865282f..352932a15 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/27.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/27.exercises/solution.md" @@ -40,7 +40,7 @@ double sin(double x) { int i = 0; double result = 0, n = 0; - ____________________ + ____________________; return result; } double nResult(double x, double n) diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/28.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/28.exercises/solution.md" index 5e098023c..502e29254 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/28.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/28.exercises/solution.md" @@ -20,7 +20,7 @@ int main() } break; } - __________________ + __________________; printf("sum=%d\n", sum); return 0; } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/29.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/29.exercises/solution.md" index 3a3d97c53..0a79020ca 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/29.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/29.exercises/solution.md" @@ -37,7 +37,7 @@ private: { return; } - _____________________ + _____________________; } }; ``` diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/30.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/30.exercises/solution.md" index fe531768a..1fd7ef314 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/30.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/30.exercises/solution.md" @@ -23,7 +23,7 @@ private: res.push_back(stack); for (int i = start; i < nums.size(); i++) { - ______________ + ______________; } } }; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/31.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/31.exercises/solution.md" index 60b65e4e4..2aebef569 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/31.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/31.exercises/solution.md" @@ -41,7 +41,7 @@ static int uniquePaths(int m, int n) { for (col = 1; col < m; col++) { - ______________________________ + ______________________________; } } return grids[m * n - 1]; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/32.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/32.exercises/solution.md" index 51571680d..940854b27 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/32.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/32.exercises/solution.md" @@ -29,7 +29,7 @@ public: } for ( auto& it : str[k] ) { ans.push_back( it ); - _____________________ + _____________________; ans.pop_back(); } } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/33.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/33.exercises/solution.md" index 13486ea86..830cf2331 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/33.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/33.exercises/solution.md" @@ -69,7 +69,7 @@ static struct TreeNode *dfs(int low, int high, int *count) for (i = low; i <= high; i++) { int left_cnt, right_cnt; - ________________________________ + ________________________________; if (left_cnt == 0) left_cnt = 1; if (right_cnt == 0) diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/34.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/34.exercises/solution.md" index 1af1d1bbd..564a0a2ad 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/34.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/34.exercises/solution.md" @@ -128,7 +128,7 @@ public static int myAtoi(String str) { if (base > Integer.MAX_VALUE / 10 || (base == Integer.MAX_VALUE / 10 && str.charAt(i) - '0' > 7)) { return (sign == 1) ? Integer.MAX_VALUE : Integer.MIN_VALUE; } - ____________________ + ____________________; } return base * sign; } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/35.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/35.exercises/solution.md" index eade1f595..2442a1c00 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/35.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/35.exercises/solution.md" @@ -44,7 +44,7 @@ public: { for (int j = 0; j < i; j++) { - ___________________ + ___________________; } } return sum[n]; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/36.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/36.exercises/solution.md" index cede65c4e..f512d675e 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/36.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/36.exercises/solution.md" @@ -56,7 +56,7 @@ int **insert(int **intervals, int intervalsSize, int *intervalsColSize, int *new if (tmp[i * 2] > results[len][1]) { len++; - ________________________ + ________________________; } else if (tmp[i * 2 + 1] > results[len][1]) { diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/37.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/37.exercises/solution.md" index 0413fa46c..55fd6f1e5 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/37.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/37.exercises/solution.md" @@ -26,7 +26,7 @@ public: { if (k > j + 1 && nums[k] == nums[k - 1]) continue; - _____________________________ + _____________________________; if (k >= l) { break; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/38.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/38.exercises/solution.md" index 753e54e5a..3d276ecdd 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/38.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/38.exercises/solution.md" @@ -90,7 +90,7 @@ static void parse(char *input, char *output) n += count % 10; count /= 10; } - ____________________ + ____________________; *q++ = p[0]; p++; } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/39.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/39.exercises/solution.md" index a2216c0a5..415583b16 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/39.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/39.exercises/solution.md" @@ -36,7 +36,7 @@ public: ListNode *prev = &dummy; ListNode *p = head; k = k % len; - _______________________ + _______________________; if (p != nullptr) { prev->next = tail->next; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/40.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/40.exercises/solution.md" index a8485b8b6..9e863b6b8 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/40.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/40.exercises/solution.md" @@ -32,7 +32,7 @@ private: for (int i = start; i <= n; i++) { stack.push_back(i); - _____________________ + _____________________; stack.pop_back(); } } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/41.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/41.exercises/solution.md" index 4305554dd..56bbeb494 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/41.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/41.exercises/solution.md" @@ -24,7 +24,7 @@ public: lc--; if (lc > rc) { - _________________ + _________________; } } vector generateParenthesis(int n) diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/42.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/42.exercises/solution.md" index 59a4ea408..acbda4475 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/42.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/42.exercises/solution.md" @@ -19,7 +19,7 @@ public: for (int j = low; j < high; j++) { int tmp = matrix[i][j]; - _________________________ + _________________________; } } } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/43.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/43.exercises/solution.md" index b774409f3..96e4feb67 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/43.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/43.exercises/solution.md" @@ -15,7 +15,7 @@ public: for (int i = 0, j = height.size() - 1; i < j;) { temp = min(height[i], height[j]) * (j - i); - ______________________ + ______________________; } return ret; } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/44.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/44.exercises/solution.md" index 67803a44b..2d1116886 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/44.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/44.exercises/solution.md" @@ -38,7 +38,7 @@ static void dfs(char *s, int start, char *stack, int num, char **results, int *c for (j = 0; j < num; j++) { char *q = stack + j * WIDTH; - ______________________ + ______________________; } (*count)++; } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/45.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/45.exercises/solution.md" index 74311beaf..a41829c3e 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/45.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/45.exercises/solution.md" @@ -22,7 +22,7 @@ int *grayCode(int n, int *returnSize) } int i, count = 1 << n; int *codes = malloc(count * sizeof(int)); - _________________ + _________________; return codes; } int main(int argc, char **argv) diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/46.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/46.exercises/solution.md" index c604d05c9..4015ab3e9 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/46.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/46.exercises/solution.md" @@ -24,7 +24,7 @@ public: if (i >= 0) { int j = nums.size() - 1; - ________________________ + ________________________; swap(nums.begin() + i, nums.begin() + j); } reverse(nums.begin() + i + 1, nums.end()); diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/47.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/47.exercises/solution.md" index bade446bd..c74b51d51 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/47.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/47.exercises/solution.md" @@ -28,7 +28,7 @@ private: if (last != nums[i]) { stack.push_back(nums[i]); - ____________________ + ____________________; stack.pop_back(); } last = nums[i]; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/48.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/48.exercises/solution.md" index 7988acb1a..38c66099f 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/48.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/48.exercises/solution.md" @@ -77,7 +77,7 @@ static char *simplifyPath(char *path) { for (i = 0; i < depth; i++) { - ____________________ + ____________________; } } *q = '\0'; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/49.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/49.exercises/solution.md" index f2b67217b..f1b28f0e7 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/49.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/49.exercises/solution.md" @@ -34,7 +34,7 @@ struct ListNode *addTwoNumbers(struct ListNode *l1, struct ListNode *l2) pp->next = p = q; qp->next = NULL; } - ____________________ + ____________________; if (carry) { struct ListNode *n = (struct ListNode *)malloc(sizeof(struct ListNode)); diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/50.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/50.exercises/solution.md" index 954a7e62c..9fd2de036 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/50.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/50.exercises/solution.md" @@ -31,7 +31,7 @@ struct ListNode *partition(struct ListNode *head, int x) { if (p->val < x) { - __________________ + __________________; } else { diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/51.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/51.exercises/solution.md" index 95a385891..d1b76337a 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/51.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/51.exercises/solution.md" @@ -100,7 +100,7 @@ char *intToRoman(int num) int i = 0; while (num) { - ______________ + ______________; else { i++; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/52.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/52.exercises/solution.md" index 2cbf79848..cef571a01 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/52.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/52.exercises/solution.md" @@ -32,7 +32,7 @@ private: { if (!used[i]) { - _____________________ + _____________________; stack.push_back(nums[i]); used[i] = true; dfs(nums, used, res); diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/53.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/53.exercises/solution.md" index 58aa2bd31..430f8c5d2 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/53.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/53.exercises/solution.md" @@ -14,7 +14,7 @@ int lengthOfLongestSubstring(char *s) memset(hset, 0, sizeof hset); for (; s[j]; j++) { - ___________________ + ___________________; } return m; } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/54.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/54.exercises/solution.md" index eb1d0bef1..f4df80c97 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/54.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/54.exercises/solution.md" @@ -46,7 +46,7 @@ static int numDecodings(char *s) int c = b; for (int i = 2; i <= len; i++) { - _________________ + _________________; a = b; b = c; } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/55.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/55.exercises/solution.md" index 440414e2a..593fe2a7c 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/55.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/55.exercises/solution.md" @@ -33,7 +33,7 @@ public: unsigned int res = 0; while (dvd >= dvs) { - ________________ + ________________; } if (signal == 1 && res >= INT_MAX) { diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/56.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/56.exercises/solution.md" index d252ec0c3..cebcfba66 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/56.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/56.exercises/solution.md" @@ -30,7 +30,7 @@ public: { ans.push_back(matrix[i][col - 1 - cir]); } - __________________ + __________________; for (int i = row - 2 - cir; i > cir && (col - 1 - cir != cir); i--) { ans.push_back(matrix[i][cir]); diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/57.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/57.exercises/solution.md" index 6f33184b2..1c8155ee1 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/57.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/57.exercises/solution.md" @@ -31,7 +31,7 @@ private: { if (!used[i]) { - _______________ + _______________; } } } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/58.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/58.exercises/solution.md" index 153956b6d..7335986e7 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/58.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/58.exercises/solution.md" @@ -48,7 +48,7 @@ public: } if (nums[lo] <= nums[mid]) { - ____________ + ____________; } else { diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/59.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/59.exercises/solution.md" index eb83acfbc..603ab2310 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/59.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/59.exercises/solution.md" @@ -24,7 +24,7 @@ static int binary_search(int *nums, int len, int target) high = mid; } } - ______________________ + ______________________; else { return high; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/60.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/60.exercises/solution.md" index 06986df51..8efe1d6cf 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/60.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/60.exercises/solution.md" @@ -19,7 +19,7 @@ public: } else { - ___________________ + ___________________; } } private: diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/61.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/61.exercises/solution.md" index 8016d73bf..611f9798d 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/61.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/61.exercises/solution.md" @@ -31,7 +31,7 @@ public: string key; for (int i : counts) { - ________________ + ________________; } ht[key].push_back(str); } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/62.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/62.exercises/solution.md" index 9825fc6dd..cc40b25be 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/62.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/62.exercises/solution.md" @@ -30,7 +30,7 @@ public: { for (int n = 0; n < j; n++) { - __________________ + __________________; } } } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/63.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/63.exercises/solution.md" index 6299e4926..cfbcfc79d 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/63.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/63.exercises/solution.md" @@ -70,7 +70,7 @@ private: while (lo + 1 < hi) { int mid = lo + (hi - lo) / 2; - ______________ + ______________; } if (lo == -1 || nums[lo] != target) { diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/64.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/64.exercises/solution.md" index e13083f48..b5efe5a3e 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/64.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/64.exercises/solution.md" @@ -23,7 +23,7 @@ public: while (hi < nums.size() - 1) { int right = 0; - _______________________ + _______________________; hi = right; steps++; } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/65.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/65.exercises/solution.md" index 0b9c15302..ff8a65791 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/65.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/65.exercises/solution.md" @@ -26,7 +26,7 @@ static struct ListNode *reverseBetween(struct ListNode *head, int m, int n) for (i = m; i < n; i++) { struct ListNode *q = p->next; - __________________ + __________________; } return dummy.next; } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/66.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/66.exercises/solution.md" index 3479efb04..2528efd6b 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/66.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/66.exercises/solution.md" @@ -37,7 +37,7 @@ int minPathSum(int **grid, int gridRowSize, int gridColSize) { for (j = 1; j < gridColSize; j++) { - _____________________ + _____________________; } } return dp[gridRowSize - 1][gridColSize - 1]; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/67.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/67.exercises/solution.md" index b8f5dc5a9..099365eb8 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/67.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/67.exercises/solution.md" @@ -27,7 +27,7 @@ public: pv.push_back(p); p = p->next; } - _________________ + _________________; p->next = p->next->next; return empty_node.next; } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/68.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/68.exercises/solution.md" index d68eed9be..887a0b363 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/68.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/68.exercises/solution.md" @@ -52,7 +52,7 @@ private: for (int i = start; i < candidates.size(); i++) { stack.push_back(candidates[i]); - _____________________________ + _____________________________; stack.pop_back(); } } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/69.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/69.exercises/solution.md" index 98b9dc205..c398b624f 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/69.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/69.exercises/solution.md" @@ -39,7 +39,7 @@ public: break; } t--; - ________________ + ________________; } s[ti + maxlen] = 0; return s.c_str() + ti; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/70.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/70.exercises/solution.md" index 255644ae5..d7bce7ebb 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/70.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/70.exercises/solution.md" @@ -55,7 +55,7 @@ static bool search(int *nums, int numsSize, int target) } else if (nums[lo] <= nums[mid]) { - ___________________ + ___________________; } else { diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/71.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/71.exercises/solution.md" index a3104c89e..fec889f80 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/71.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/71.exercises/solution.md" @@ -47,7 +47,7 @@ static int removeDuplicates(int *nums, int numsSize) { if (nums[len] == nums[i]) { - _____________________ + _____________________; } else { diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/72.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/72.exercises/solution.md" index 733bc4e85..d2ede5a0c 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/72.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/72.exercises/solution.md" @@ -32,7 +32,7 @@ static bool isInterleave(char *s1, char *s2, char *s3) } for (i = 1; i < len2 + 1; i++) { - ____________________ + ____________________; } for (i = 1; i < len1 + 1; i++) { diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/73.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/73.exercises/solution.md" index 5dda4df7d..c5b43527c 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/73.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/73.exercises/solution.md" @@ -34,7 +34,7 @@ int **merge(int **intervals, int intervalsSize, int *intervalsColSize, int *retu if (tmp[i * 2] > intervals[len][1]) { len++; - ___________________________ + ___________________________; } else if (tmp[i * 2 + 1] > intervals[len][1]) { diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/74.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/74.exercises/solution.md" index e6e64d74b..f371a2220 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/74.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/74.exercises/solution.md" @@ -31,7 +31,7 @@ public: { r.emplace_back(vector({nums[cur], nums[left], nums[right]})); int t = left + 1; - __________________________ + __________________________; } else if (n > 0) { diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/75.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/75.exercises/solution.md" index 182168863..2a6f0ed3e 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/75.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/75.exercises/solution.md" @@ -18,7 +18,7 @@ public: int j, carry = 0; for (j = num1.length() - 1; j >= 0; j--) { - _____________________ + _____________________; } res[i + j + 1] = carry + '0'; } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/76.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/76.exercises/solution.md" index 33e9df206..89ec3e3d3 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/76.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/76.exercises/solution.md" @@ -31,7 +31,7 @@ public: { break; } - ____________________________ + ____________________________; else { int t = left + 1; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/77.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/77.exercises/solution.md" index 5d234cd4b..5b85a6ea3 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/77.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/77.exercises/solution.md" @@ -17,7 +17,7 @@ static bool canJump(int *nums, int numsSize) int i, pos = 0; for (i = 0; i < numsSize - 1; i++) { - ___________________ + ___________________; pos = max(i + nums[i], pos); } return pos >= numsSize - 1; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/78.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/78.exercises/solution.md" index 3657aa26d..5480fc78d 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/78.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/78.exercises/solution.md" @@ -36,7 +36,7 @@ static bool dfs(char *word, char **board, bool *used, } if (!result && col < col_size - 1 && !used[row * col_size + col + 1]) { - __________________________ + __________________________; } used[row * col_size + col] = false; return result; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/79.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/79.exercises/solution.md" index 29e682c56..c3dfde0be 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/79.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/79.exercises/solution.md" @@ -69,7 +69,7 @@ public: { root = stk.top(); stk.pop(); - _______________________ + _______________________; } } return true; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/80.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/80.exercises/solution.md" index 6ee6a0759..224a97f10 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/80.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/80.exercises/solution.md" @@ -21,7 +21,7 @@ struct ListNode *deleteDuplicates(struct ListNode *head) p = q = head; while (p != NULL) { - _____________________ + _____________________; } return dummy.next; } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/81.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/81.exercises/solution.md" index edddfa7d9..d438cafe6 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/81.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/81.exercises/solution.md" @@ -85,7 +85,7 @@ public: } if (left) { - _____________________ + _____________________; } } for (i = 0; i < full_cycles; ++i) diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/82.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/82.exercises/solution.md" index ce778bc16..c34c0b13b 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/82.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/82.exercises/solution.md" @@ -48,7 +48,7 @@ private: if (last != candidates[i]) { stack.push_back(candidates[i]); - _________________________________ + _________________________________; stack.pop_back(); } last = candidates[i]; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/83.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/83.exercises/solution.md" index f7604d6ac..aae11a0f0 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/83.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/83.exercises/solution.md" @@ -17,7 +17,7 @@ public: ans[0][0] = 1; while (cnt < n * n) { - ___________________ + ___________________; time++; } return ans; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/84.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/84.exercises/solution.md" index 48f4f22ed..0919fc2a6 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/84.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/84.exercises/solution.md" @@ -25,7 +25,7 @@ public: while (p != nullptr && p->next != nullptr) { struct ListNode *q = p->next; - _____________________ + _____________________; } return dummy.next; } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/85.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/85.exercises/solution.md" index 6d02989ea..5919f1258 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/85.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/85.exercises/solution.md" @@ -30,7 +30,7 @@ public: j = nums.size() - 1; while (i < j) { - _____________________ + _____________________; swap(nums[i], nums[j]); } } diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/86.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/86.exercises/solution.md" index 2b8e0c488..6e68ee522 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/86.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/86.exercises/solution.md" @@ -76,7 +76,7 @@ static int uniquePathsWithObstacles(int **obstacleGrid, int obstacleGridRowSize, int *line = obstacleGrid[row]; for (col = 1; col < obstacleGridColSize; col++) { - ________________________ + ________________________; } } return obstacleGrid[obstacleGridRowSize - 1][obstacleGridColSize - 1]; diff --git "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/87.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/87.exercises/solution.md" index 34934f8d0..cc9aa5af6 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/1.cpp/87.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/1.cpp/87.exercises/solution.md" @@ -88,7 +88,7 @@ public: vector mark(10); for (int i = sr; i < sr + 3; i++) { - ________________________ + ________________________; } } return true; diff --git "a/data/2.dailycode\344\270\255\351\230\266/3.python/1.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/3.python/1.exercises/solution.md" index 22c72b9ce..23979d3fc 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/3.python/1.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/3.python/1.exercises/solution.md" @@ -23,7 +23,7 @@ def deal(data,flag): elif a==[]: a.append([i]) else: - _______________________ + _______________________; a.append([i]) target=sum(max(a,key=sum)) return list(filter(lambda x:sum(x)==target,a)) diff --git "a/data/2.dailycode\344\270\255\351\230\266/3.python/2.exercises/solution.md" "b/data/2.dailycode\344\270\255\351\230\266/3.python/2.exercises/solution.md" index 66bfe9564..41372faef 100644 --- "a/data/2.dailycode\344\270\255\351\230\266/3.python/2.exercises/solution.md" +++ "b/data/2.dailycode\344\270\255\351\230\266/3.python/2.exercises/solution.md" @@ -30,7 +30,7 @@ def lcm(x, y): else: greater = y while(True): - ____________________ + ____________________; greater += 1 return lcm num1 = int(input("输入第一个数字: ")) diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/1.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/1.exercises/solution.md" index 8347615fe..110ab13d2 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/1.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/1.exercises/solution.md" @@ -26,7 +26,7 @@ int main() temp = 0; cin >> n1 >> n2 >> n3; temp += n1 * x + n2 * y + n3 * z; - __________________ + __________________; } cout << t << " " << min; return 0; diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/10.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/10.exercises/solution.md" index 9332028cd..442d35d71 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/10.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/10.exercises/solution.md" @@ -28,7 +28,7 @@ void solve() printf("\n"); for (j = 0; j < n; j++) { - ___________________ + ___________________; for (k = 1; k <= Y; k++) printf("%-3d", Min[k]); printf("\n"); diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/11.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/11.exercises/solution.md" index f73de102f..483836970 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/11.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/11.exercises/solution.md" @@ -46,7 +46,7 @@ int main() auto status = 0; for (; j < n; ++j) { - ______________ + ______________; } if (status == 0) { diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/12.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/12.exercises/solution.md" index 44ad81b10..fab6e0c01 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/12.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/12.exercises/solution.md" @@ -17,7 +17,7 @@ int main() { return 0; } int total(int x) { - _________________ + _________________; } ``` diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/13.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/13.exercises/solution.md" index f68970779..725f1485e 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/13.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/13.exercises/solution.md" @@ -32,7 +32,7 @@ int main() } for (i = 1; i < strlen(a); i++) { - ________________ + ________________; } if (zyy && !fyy) { diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/14.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/14.exercises/solution.md" index beaa91bd3..428b9e18d 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/14.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/14.exercises/solution.md" @@ -40,7 +40,7 @@ int main() for (long long i = 2; i <= c; i = sum / k + 1) { int t = num; - ________________ + ________________; } cout << "Case #" << count++ <<": " << num << endl; } diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/15.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/15.exercises/solution.md" index 4f0370308..e4205a93b 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/15.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/15.exercises/solution.md" @@ -19,7 +19,7 @@ int sushu(int x) int i, j = 1; for (i = 2; i <= sqrt(x); i++) { - _______________ + _______________; } return j; } diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/16.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/16.exercises/solution.md" index 7335833fb..6a33f679b 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/16.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/16.exercises/solution.md" @@ -26,7 +26,7 @@ int binary(int *a, int key, int n) mid = (left + right) / 2; while (left < right && a[mid] != key) { - _________________ + _________________; } if (a[mid] == key) return mid; diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/18.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/18.exercises/solution.md" index eade309e5..a5ca7aedd 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/18.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/18.exercises/solution.md" @@ -20,7 +20,7 @@ void paixu(float *p, int n) if (fabs(p[j]) < fabs(p[j + 1])) { float tmp; - _______________ + _______________; } } } diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/19.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/19.exercises/solution.md" index 48de848a5..07bbacbf9 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/19.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/19.exercises/solution.md" @@ -49,7 +49,7 @@ void shuchu(char *a, int m, int n) else { cout << a[(m + n) / 2]; - _______________________ + _______________________; } } int main() diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/2.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/2.exercises/solution.md" index 35f4df970..1dee2d51a 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/2.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/2.exercises/solution.md" @@ -31,7 +31,7 @@ void JosePhus(int n, int m, int start) { start--; int index = (start + m - 1) % sum; - ______________ + ______________; sum--; count++; } diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/20.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/20.exercises/solution.md" index 811b2f504..358910968 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/20.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/20.exercises/solution.md" @@ -19,7 +19,7 @@ #include using namespace std; static const double e = 1e-12; -_______________________________ +_______________________________; int main() { complex a, b, c; diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/21.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/21.exercises/solution.md" index 178095aa9..5df7e22e9 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/21.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/21.exercises/solution.md" @@ -112,7 +112,7 @@ private: rows[row][i] = true; cols[col][i] = true; boxes[idx][i] = true; - _______________________________ + _______________________________; if (!ok) { rows[row][i] = false; diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/22.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/22.exercises/solution.md" index 6b11b05e6..e46115342 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/22.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/22.exercises/solution.md" @@ -17,7 +17,7 @@ public: int right = height.size() - 1, right_max = 0; while (left < right) { - _____________________ + _____________________; } return res; } diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/23.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/23.exercises/solution.md" index 9074caf70..289802c52 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/23.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/23.exercises/solution.md" @@ -33,7 +33,7 @@ static int largestRectangleArea(int *heights, int heightsSize) indexes[pos++] = i; } int max_area = 0; - _______________________ + _______________________; return max_area; } int main(void) diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/24.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/24.exercises/solution.md" index 4710d206b..79a8674ce 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/24.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/24.exercises/solution.md" @@ -19,7 +19,7 @@ public: int i = 0; while (i < nums.size()) { - ____________________________ + ____________________________; } for (i = 0; i < nums.size(); i++) { diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/25.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/25.exercises/solution.md" index df412fa0f..9e8a96489 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/25.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/25.exercises/solution.md" @@ -63,7 +63,7 @@ private: if (row == 0 || !conflict(stack, row, i)) { stack[row] = i; - _______________________ + _______________________; } } return count; diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/3.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/3.exercises/solution.md" index 973ed704c..e671b8891 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/3.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/3.exercises/solution.md" @@ -116,7 +116,7 @@ int main() if (temp.time - 86400 >= old.time) { int tc = old.country; - _________________________ + _________________________; q.pop(); } else diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/4.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/4.exercises/solution.md" index 74892d9b3..9a00bbb93 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/4.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/4.exercises/solution.md" @@ -41,7 +41,7 @@ int main() t = -1; for (i = 0; i < n - 1; i++) { - ____________________ + ____________________; } b[j] = n - 1 - t; c[j] = n - 1; diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/5.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/5.exercises/solution.md" index 6cce0e68e..b6529139f 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/5.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/5.exercises/solution.md" @@ -65,7 +65,7 @@ void dfs(int x) } for (int i = 1; i < 13; ++i) { - ________________ + ________________; } } int main() diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/6.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/6.exercises/solution.md" index 098b419dd..6bbc0c240 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/6.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/6.exercises/solution.md" @@ -20,7 +20,7 @@ int main() a = j; while (j != 0) { - ______________ + ______________; } j = a; if (sum == a) diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/7.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/7.exercises/solution.md" index 2b29d688f..b20fce648 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/7.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/7.exercises/solution.md" @@ -19,7 +19,7 @@ void InsertSort(int a[], int n) { int j = i - 1; int x = a[i]; - ________________ + ________________; } } } diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/8.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/8.exercises/solution.md" index 700ba31b5..3fa4648ea 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/8.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/8.exercises/solution.md" @@ -24,7 +24,7 @@ string StrCon(const string& a, const string& b) c += a[i]; c += b[i]; } - __________________ + __________________; return c; } int main() diff --git "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/9.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/9.exercises/solution.md" index f10b9418a..b61caa5b8 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/1.cpp/9.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/1.cpp/9.exercises/solution.md" @@ -18,7 +18,7 @@ int main() scanf("%d", &a[i]); if (i % 2 == 1) { - __________________ + __________________; } } for (i = n - 1; i >= 0; i--) diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/1.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/1.exercises/solution.md" index b5099ab90..6f6a2d48d 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/1.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/1.exercises/solution.md" @@ -41,7 +41,7 @@ def maze(m, n, route, pos, export): maze(m, n, route[:], (pos[0]+1,pos[1]), export) if pos[1] > 0 and m[pos[0]][pos[1]-1] == 0 and (pos[0],pos[1]-1) not in route: maze(m, n, route[:], (pos[0],pos[1]-1), export) - ________________________________ + ________________________________; m = [ [1,1,1,0,1,1,1,1,1,1], [1,0,0,0,0,0,0,0,1,1], diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/10.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/10.exercises/solution.md" index de5056dc1..4266726fa 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/10.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/10.exercises/solution.md" @@ -16,7 +16,7 @@ class Solution(object): if curr == '(': stack.append(i) else: - __________________ + __________________; tep, res = 0, 0 for t in data: if t == 1: diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/11.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/11.exercises/solution.md" index 2763c016d..c93b24c05 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/11.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/11.exercises/solution.md" @@ -23,7 +23,7 @@ class Solution(object): for i in range(pos): for j in range(ls): if board[i][j] == 'Q': - ______________________ + ______________________; for j in range(ls): if check[j]: board[pos][j] = 'Q' diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/12.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/12.exercises/solution.md" index 5cf0c4d53..0eed7542f 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/12.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/12.exercises/solution.md" @@ -75,7 +75,7 @@ class Solution(object): return memo[s1, s2] n = len(s1) for i in range(1, n): - ___________________________ + ___________________________; memo[s1, s2] = False return False # %% diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/13.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/13.exercises/solution.md" index 3c3bc4a78..d980cd19f 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/13.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/13.exercises/solution.md" @@ -41,7 +41,7 @@ class Solution(object): temp.next = head head = temp start = head - _________________ + _________________; return head.next def reverseList(self, head, end): pos = head.next diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/14.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/14.exercises/solution.md" index 55560d53a..8a4a568b1 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/14.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/14.exercises/solution.md" @@ -17,7 +17,7 @@ class Solution(object): while pos < ls and s[pos].isdigit(): pos += 1 isNumeric = True - _____________________________ + _____________________________; elif pos < ls and s[pos] == 'e' and isNumeric: isNumeric = False pos += 1 diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/15.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/15.exercises/solution.md" index 03f095e9d..d134c4538 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/15.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/15.exercises/solution.md" @@ -28,7 +28,7 @@ class Solution(object): except KeyError: target_dict[word] = 1 res = [] - ___________________________________ + ___________________________________; curr_dict = target_dict.copy() for pos in range(start, start + word_ls * len(words), word_ls): curr = s[pos:pos + word_ls] diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/16.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/16.exercises/solution.md" index 907e50826..0b0ccc976 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/16.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/16.exercises/solution.md" @@ -39,7 +39,7 @@ class Solution: if na % 2 == 1: return ns[d - 1] else: - return _____________________ + return _____________________; # %% diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/17.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/17.exercises/solution.md" index 3616e8ef0..a49129a1a 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/17.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/17.exercises/solution.md" @@ -24,7 +24,7 @@ class Solution(object): count += 1 if count == ls_t: begin_index = ord(s[begin]) - ____________________________ + ____________________________; if window_ls < min_window: min_begin = begin min_end = end diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/18.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/18.exercises/solution.md" index 5b0e99aae..536c58f31 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/18.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/18.exercises/solution.md" @@ -68,7 +68,7 @@ class Solution(object): return l1 head = curr = ListNode(-1) while l1 is not None and l2 is not None: - ____________________ + ____________________; curr = curr.next if l1 is not None: curr.next = l1 diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/19.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/19.exercises/solution.md" index f1a10ae5b..872aa917c 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/19.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/19.exercises/solution.md" @@ -31,7 +31,7 @@ class Solution(object): else: c = k // step res[0] += s[c] - ____________________ + ____________________; return s = "" diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/2.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/2.exercises/solution.md" index 98d200557..cd6e1be59 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/2.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/2.exercises/solution.md" @@ -64,7 +64,7 @@ class Solution(object): for n in range(9): if n!=j and board[i][n]==board[i][j]: return False - ______________________ + ______________________; return True def f(a,b,board): for i in range(a,9): diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/20.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/20.exercises/solution.md" index 19da84e00..819248e2f 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/20.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/20.exercises/solution.md" @@ -19,7 +19,7 @@ class Solution(object): if p_index < p_len and (s[s_index] == p[p_index] or p[p_index] == '?'): s_index += 1 p_index += 1 - ______________________ + ______________________; elif star != -1: p_index = star + 1 s_star += 1 diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/21.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/21.exercises/solution.md" index cdf4516e8..a6b82a3e4 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/21.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/21.exercises/solution.md" @@ -11,7 +11,7 @@ class Solution: return len(s) == 0 head_match = len(s) > 0 and (s[0] == p[0] or p[0] == '.') if len(p) > 1 and p[1] == '*': - __________________________ + __________________________; else: if not head_match: return False diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/3.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/3.exercises/solution.md" index 88532a2b9..485d2174b 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/3.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/3.exercises/solution.md" @@ -35,7 +35,7 @@ class Solution(object): if end - start <= 1: return 0 min_m = min(height[start], height[end]) - _________________________ + _________________________; step = 0 for index in range(start + 1, end): if height[index] > 0: diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/4.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/4.exercises/solution.md" index 93646f84c..3e02ac298 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/4.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/4.exercises/solution.md" @@ -17,7 +17,7 @@ class Solution(object): top, pos = 0, 0 for pos in range(ls): while top > 0 and heights[stack[top]] > heights[pos]: - _____________________________ + _____________________________; top -= 1 stack.pop() stack.append(pos) diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/5.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/5.exercises/solution.md" index 02a432282..37be50603 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/5.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/5.exercises/solution.md" @@ -16,7 +16,7 @@ class Solution(object): pos = nums[index] - 1 nums[index], nums[pos] = nums[pos], nums[index] res = 0 - _________________________ + _________________________; return res + 1 # %% s = Solution() diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/6.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/6.exercises/solution.md" index e7c666282..42047179f 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/6.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/6.exercises/solution.md" @@ -53,7 +53,7 @@ class Solution(object): isDigSafe = (1 << (n - 1 + row - index)) & diag == 0 isAntiDiagSafe = (1 << (row + index)) & antiDiag == 0 if isAntiDiagSafe and isColSafe and isDigSafe: - _________________________ + _________________________; if __name__ == '__main__': s = Solution() print (s.totalNQueens(4)) diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/7.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/7.exercises/solution.md" index f93a8bce1..a761b338a 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/7.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/7.exercises/solution.md" @@ -28,7 +28,7 @@ class Solution(object): left[j] = max(left[j], curr_left) else: left[j], curr_left = 0, j + 1 - _______________________ + _______________________; for j in range(ls_col): maxA = max(maxA, (right[j] - left[j]) * height[j]) return maxA diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/8.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/8.exercises/solution.md" index c749340a9..5cd13b3b1 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/8.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/8.exercises/solution.md" @@ -17,7 +17,7 @@ class Solution(object): if word1[i - 1] == word2[j - 1]: dp[i] = pre else: - ____________________________ + ____________________________; pre = temp return dp[ls_1] if __name__ == '__main__': diff --git "a/data/3.dailycode\351\253\230\351\230\266/3.python/9.exercises/solution.md" "b/data/3.dailycode\351\253\230\351\230\266/3.python/9.exercises/solution.md" index ae4b7da8b..823d43ff7 100644 --- "a/data/3.dailycode\351\253\230\351\230\266/3.python/9.exercises/solution.md" +++ "b/data/3.dailycode\351\253\230\351\230\266/3.python/9.exercises/solution.md" @@ -101,7 +101,7 @@ class Solution(object): text = ' '.join(curr) text += ' ' * (maxWidth - remain - len(curr) + 1) else: - ___________________________ + ___________________________; res.append(text) return res if __name__ == '__main__': -- GitLab