Skip to content

Commit 106fcc9

Browse files
committed
feat: add solutions to lc problems: No.0521
No.0521.Longest Uncommon Subsequence
1 parent e8a46dc commit 106fcc9

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

solution/0500-0599/0521.Longest Uncommon Subsequence I/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ class Solution {
8888
}
8989
```
9090

91+
### **TypeScript**
92+
93+
```ts
94+
function findLUSlength(a: string, b: string): number {
95+
return a != b ? Math.max(a.length, b.length) : -1;
96+
};
97+
```
9198
### **Rust**
9299

93100
```rust

solution/0500-0599/0521.Longest Uncommon Subsequence I/README_EN.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ class Solution {
7070
}
7171
```
7272

73+
### **TypeScript**
74+
75+
```ts
76+
function findLUSlength(a: string, b: string): number {
77+
return a != b ? Math.max(a.length, b.length) : -1;
78+
};
79+
```
80+
7381
### **Rust**
7482

7583
```rust
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function findLUSlength(a: string, b: string): number {
2+
return a != b ? Math.max(a.length, b.length) : -1;
3+
};

0 commit comments

Comments
 (0)