Skip to content

Commit ffef7e8

Browse files
authored
feat: add solutions for lc No.3861 (#5066)
1 parent 0e1c5e6 commit ffef7e8

38 files changed

Lines changed: 1193 additions & 5 deletions

File tree

solution/1700-1799/1758.Minimum Changes To Make Alternating Binary String/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function minOperations(s: string): number {
129129
let cnt = 0;
130130
const n = s.length;
131131
for (let i = 0; i < n; ++i) {
132-
if (s[i] !== "01"[i & 1]) {
132+
if (s[i] !== '01'[i & 1]) {
133133
++cnt;
134134
}
135135
}

solution/1700-1799/1758.Minimum Changes To Make Alternating Binary String/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function minOperations(s: string): number {
130130
let cnt = 0;
131131
const n = s.length;
132132
for (let i = 0; i < n; ++i) {
133-
if (s[i] !== "01"[i & 1]) {
133+
if (s[i] !== '01'[i & 1]) {
134134
++cnt;
135135
}
136136
}

solution/1700-1799/1758.Minimum Changes To Make Alternating Binary String/Solution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function minOperations(s: string): number {
22
let cnt = 0;
33
const n = s.length;
44
for (let i = 0; i < n; ++i) {
5-
if (s[i] !== "01"[i & 1]) {
5+
if (s[i] !== '01'[i & 1]) {
66
++cnt;
77
}
88
}

solution/3800-3899/3852.Smallest Pair With Different Frequencies/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: 简单
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3800-3899/3852.Smallest%20Pair%20With%20Different%20Frequencies/README.md
5+
rating: 1287
6+
source: 第 177 场双周赛 Q1
57
---
68

79
<!-- problem:start -->

solution/3800-3899/3852.Smallest Pair With Different Frequencies/README_EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: Easy
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3800-3899/3852.Smallest%20Pair%20With%20Different%20Frequencies/README_EN.md
5+
rating: 1287
6+
source: Biweekly Contest 177 Q1
57
---
68

79
<!-- problem:start -->

solution/3800-3899/3853.Merge Close Characters/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: 中等
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3800-3899/3853.Merge%20Close%20Characters/README.md
5+
rating: 1471
6+
source: 第 177 场双周赛 Q2
57
---
68

79
<!-- problem:start -->

solution/3800-3899/3853.Merge Close Characters/README_EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: Medium
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3800-3899/3853.Merge%20Close%20Characters/README_EN.md
5+
rating: 1471
6+
source: Biweekly Contest 177 Q2
57
---
68

79
<!-- problem:start -->

solution/3800-3899/3854.Minimum Operations to Make Array Parity Alternating/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: 中等
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3800-3899/3854.Minimum%20Operations%20to%20Make%20Array%20Parity%20Alternating/README.md
5+
rating: 2095
6+
source: 第 177 场双周赛 Q3
57
---
68

79
<!-- problem:start -->

solution/3800-3899/3854.Minimum Operations to Make Array Parity Alternating/README_EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: Medium
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3800-3899/3854.Minimum%20Operations%20to%20Make%20Array%20Parity%20Alternating/README_EN.md
5+
rating: 2095
6+
source: Biweekly Contest 177 Q3
57
---
68

79
<!-- problem:start -->

solution/3800-3899/3855.Sum of K-Digit Numbers in a Range/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: 困难
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3800-3899/3855.Sum%20of%20K-Digit%20Numbers%20in%20a%20Range/README.md
5+
rating: 2085
6+
source: 第 177 场双周赛 Q4
57
---
68

79
<!-- problem:start -->

0 commit comments

Comments
 (0)