PTT
Submit
Submit
选择语言
正體中文
简体中文
PTT
Marginalman
Re: [闲聊] 每日leetcode
楼主:
dont
2024-08-03 11:15:21
1460. Make Two Arrays Equal by Reversing Subarrays
## 思路
用Counter检查两字串出现char相不相同
一行easy
## Code
```python
class Solution:
def canBeEqual(self, target: List[int], arr: List[int]) -> bool:
return Counter(target) == Counter(arr)
```
作者:
sustainer123
(caster)
2024-08-03 11:20:00
大师
继续阅读
[闲聊] 他两条ssd怎么没组raid1 = =
Kazama168
[瓦特] AZKi 今天这个
pchooooome
Re: [姆咪] Huan组14代i7喔
DoraGian
Re: [姆咪] Huan组14代i7喔
NCKUEECS
[瓦特] pup 哈恰马
umi0912umi
[姆咪] 吃旭集
muscatsss
[瓦特] 那个你知道的
HGK
[闲聊] 吃筑间
kalama450
[瓦特] 射惹
Haku1Koyor1
Re: [闲聊] MLB
qscxz
Links
booklink
Contact Us: admin [ a t ] ucptt.com