Skip to content

Commit 6af2a03

Browse files
committed
fix: correct typos in solution file names
1 parent 0594502 commit 6af2a03

9 files changed

Lines changed: 5 additions & 319 deletions

File tree

solution/0000-0099/0061.Rotate List/Soution.rs

Lines changed: 0 additions & 48 deletions
This file was deleted.

solution/0000-0099/0061.Rotate List/Soution.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

solution/2500-2599/2539.Count the Number of Good Subsequences/Solutoin.cpp

Lines changed: 0 additions & 52 deletions
This file was deleted.

solution/2700-2799/2729.Check if The Number is Fascinating/README.md

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -158,55 +158,4 @@ impl Solution {
158158

159159
<!-- solution:end -->
160160

161-
<!-- solution:start -->
162-
163-
### 方法二
164-
165-
<!-- tabs:start -->
166-
167-
#### Rust
168-
169-
```rust
170-
use std::collections::HashMap;
171-
172-
impl Solution {
173-
pub fn is_fascinating(mut n: i32) -> bool {
174-
let mut i = n * 2;
175-
let mut j = n * 3;
176-
177-
let mut hash = HashMap::new();
178-
179-
while n != 0 {
180-
let cnt = hash.entry(n % 10).or_insert(0);
181-
*cnt += 1;
182-
n /= 10;
183-
}
184-
185-
while i != 0 {
186-
let cnt = hash.entry(i % 10).or_insert(0);
187-
*cnt += 1;
188-
i /= 10;
189-
}
190-
191-
while j != 0 {
192-
let cnt = hash.entry(j % 10).or_insert(0);
193-
*cnt += 1;
194-
j /= 10;
195-
}
196-
197-
for k in 1..=9 {
198-
if !hash.contains_key(&k) || hash[&k] > 1 {
199-
return false;
200-
}
201-
}
202-
203-
!hash.contains_key(&0)
204-
}
205-
}
206-
```
207-
208-
<!-- tabs:end -->
209-
210-
<!-- solution:end -->
211-
212161
<!-- problem:end -->

solution/2700-2799/2729.Check if The Number is Fascinating/README_EN.md

Lines changed: 5 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ tags:
6161

6262
<!-- solution:start -->
6363

64-
### Solution 1
64+
### Solution 1: Simulation
65+
66+
According to the problem description, we concatenate $n$, $2 \times n$, and $3 \times n$ into a string $s$, and then check whether $s$ contains each digit from $1$ to $9$ exactly once and does not contain any $0$.
67+
68+
The time complexity is $O(\log n)$, and the space complexity is $O(\log n)$. Here, $n$ is the given integer.
6569

6670
<!-- tabs:start -->
6771

@@ -154,55 +158,4 @@ impl Solution {
154158

155159
<!-- solution:end -->
156160

157-
<!-- solution:start -->
158-
159-
### Solution 2
160-
161-
<!-- tabs:start -->
162-
163-
#### Rust
164-
165-
```rust
166-
use std::collections::HashMap;
167-
168-
impl Solution {
169-
pub fn is_fascinating(mut n: i32) -> bool {
170-
let mut i = n * 2;
171-
let mut j = n * 3;
172-
173-
let mut hash = HashMap::new();
174-
175-
while n != 0 {
176-
let cnt = hash.entry(n % 10).or_insert(0);
177-
*cnt += 1;
178-
n /= 10;
179-
}
180-
181-
while i != 0 {
182-
let cnt = hash.entry(i % 10).or_insert(0);
183-
*cnt += 1;
184-
i /= 10;
185-
}
186-
187-
while j != 0 {
188-
let cnt = hash.entry(j % 10).or_insert(0);
189-
*cnt += 1;
190-
j /= 10;
191-
}
192-
193-
for k in 1..=9 {
194-
if !hash.contains_key(&k) || hash[&k] > 1 {
195-
return false;
196-
}
197-
}
198-
199-
!hash.contains_key(&0)
200-
}
201-
}
202-
```
203-
204-
<!-- tabs:end -->
205-
206-
<!-- solution:end -->
207-
208161
<!-- problem:end -->

solution/2700-2799/2729.Check if The Number is Fascinating/Solution2.rs

Lines changed: 0 additions & 36 deletions
This file was deleted.

solution/2700-2799/2729.Check if The Number is Fascinating/Solutions.rs

Lines changed: 0 additions & 16 deletions
This file was deleted.

solution/2800-2899/2857.Count Pairs of Points With Distance k/Soution.go

Lines changed: 0 additions & 13 deletions
This file was deleted.

solution/2800-2899/2859.Sum of Values at Indices With K Set Bits/Solultion.java

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)