当前位置:网站首页>String-4-242. Valid Letter ectopic words
String-4-242. Valid Letter ectopic words
2022-06-09 23:16:00 【Artificial intelligence Zeng Xiaojian】
Given two strings s and t , Write a function to determine t Whether it is s Letter heteronym of .
Be careful : if s and t Each character in the has the same number of occurrences , said s and t They are mutually alphabetic words .
# Method 3- Direct initialization counter
class Solution:
def isAnagram(self, s: str, t: str) -> bool:
if len(s) != len(t):
return False
return Counter(s) == Counter(t)
# Initialize counter
class Solution:
def isAnagram(self,s:str,t:str) -> bool:
if len(s) != len(t):
return False
return Counter(s) == Counter(t)边栏推荐
- Re summary of mongodb installation, configuration, error handling, crud operation, etc
- 如何实现高效的IM即时通讯长连接自适应心跳保活机制
- M-arch (fanwai 10) gd32l233 evaluation -spi drive DS1302
- cadence SPB17.4 - allegro - use keyboard move part on grid offset by our setting
- M-Arch(番外14)GD32L233评测-驱动段码LCD
- Remove packages and dependencies using yum
- 数据库优化方面的经验
- M-Arch(雅特力M4)【AT-START-F425测评】No.05 FLASH
- EasyRecovery15手机电脑全功能数据恢复软件
- 2022.6月四级作文预测
猜你喜欢
![[image denoising] image denoising based on Gaussian, mean, median and bilateral filtering, including Matlab source code](/img/ee/0a9bba9c30ae25eb4d7bec54569c8a.png)
[image denoising] image denoising based on Gaussian, mean, median and bilateral filtering, including Matlab source code

房贷利率下调 现在是买房的时机吗?

微机原理与接口技术习题1

【转载】6个Async/Await优于Promise的方面

Autre contenu lourd | formes de produits et mesures de contrôle des risques pour les prêts en espèces à l'étranger

I haven't seen this knowledge -- MySQL service evolution

be all eagerness to see it! Data list of Benji Banas' first quarter reward activities!

Online text string batch replacement tool
![[Blue Bridge Cup training 100 questions] scratch vertigo Apple Blue Bridge Cup scratch competition special prediction programming questions collective training simulation exercises question 12](/img/96/330245fa4f594fe94c39e419001d3a.png)
[Blue Bridge Cup training 100 questions] scratch vertigo Apple Blue Bridge Cup scratch competition special prediction programming questions collective training simulation exercises question 12

Im instant messaging development: mobile protocol UDP or TCP?
随机推荐
2022.6月四级作文预测
Leetcode(力扣)超高頻題講解(一)
又一重磅内容|海外现金贷产品形态及风控措施
Another important content - Overseas cash loan product form and risk control measures
[Blue Bridge Cup training 100 questions] scratch vertigo Apple Blue Bridge Cup scratch competition special prediction programming questions collective training simulation exercises question 12
『查漏补缺』Android实习面试知识点(二)
Analyzing native crash using addr2line
致广大、尽精微,曙光问道算力服务“神经系统”
[reprint] six aspects of async/await that are superior to promise
QNX system learning
exness:推特表示继续向马斯克分享数据,并在7月底或8月初进行股东投票
EasyRecovery15手机电脑全功能数据恢复软件
uni-app是如何构建小程序的?
Understand the execution principle of show create table
不能在此路径中使用此配置节,如果在父级别上锁定了该节,便会出现这种情况的解决办法
OpenHarmony RISC-V 轻量系统移植—润和W800移植分享
TL, how do you manage project risks?
使用addr2line分析Native Crash
數據庫優化方面的經驗
这知识我没见过--MySQL 服务演进