Skip to content

Commit

Permalink
✏更新 leetcode
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcaffebabe committed May 27, 2021
1 parent b126821 commit 4102f2e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions 算法与数据结构/leetcode/leetcode.md
Original file line number Diff line number Diff line change
Expand Up @@ -3761,3 +3761,21 @@ class Solution {
```

time:2500+ beat:5

## 1662. 检查两个字符串数组是否相等

<https://leetcode-cn.com/problems/check-if-two-string-arrays-are-equivalent/>

```java
class Solution {
public boolean arrayStringsAreEqual(String[] word1, String[] word2) {
String s1 = Arrays.stream(word1)
.collect(Collectors.joining());
String s2 = Arrays.stream(word2)
.collect(Collectors.joining());
return s1.equals(s2);
}
}
```

time:3 beat:11

0 comments on commit 4102f2e

Please sign in to comment.