当前位置:网站首页>242. Effective letter heteronyms
242. Effective letter heteronyms
2022-07-03 12:11:00 【zwanying】
- Effective alphabetic words
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 .
Ideas :
Use one 26 An array of lengths , Record the number of each character in a string .
Loop another string , Subtract one from the number of characters that appear .
Last , Each value of the array is 0. Is equal .
grammar :
// Get the position of a character in the string
String s = "abc";
char a = s.charAt(0);
integer array , By default, each element is 0.
边栏推荐
- php 获取文件夹下面的文件列表和文件夹列表
- ES6新特性
- Solve msvcp120d DLL and msvcr120d DLL missing
- Dynamically monitor disk i/o with ZABBIX
- Master and backup role election strategy in kept
- During FTP login, the error "530 login incorrect.login failed" is reported
- 错排问题 (抽奖,发邮件)
- Vulnhub narak
- OpenGL 索引缓存对象EBO和线宽模式
- Itext7 uses iexternalsignature container for signature and signature verification
猜你喜欢
随机推荐
利用Zabbix动态监控磁盘I/O
(构造笔记)从类、API、框架三个层面学习如何设计可复用软件实体的具体技术
Simple factory and factory method mode
Master and backup role election strategy in kept
Vulnhub's cereal
安裝electron失敗的解决辦法
Vulnhub's Tomato (tomato)
OpenGL 着色器使用
MySQL uses the method of updating linked tables with update
Go语言实现静态服务器
Oracle advanced (I) realize DMP by expdp impdp command
Vulnhub geminiinc
Pragma pack syntax and usage
Test classification in openstack
(database authorization - redis) summary of unauthorized access vulnerabilities in redis
Sheet1$.输出[Excel 源输出].列[XXX] 出错。返回的列状态是:“文本被截断,或者一个或多个字符在目标代码页中没有匹配项。”。
Jsup crawls Baidu Encyclopedia
Keepalived中Master和Backup角色选举策略
【mysql专项】读锁和写锁
previous permutation lintcode51








