当前位置:网站首页>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.
边栏推荐
- Sheet1$.输出[Excel 源输出].列[XXX] 出错。返回的列状态是:“文本被截断,或者一个或多个字符在目标代码页中没有匹配项。”。
- MCDF Experiment 1
- laravel 时区问题timezone
- Flutter: about monitoring on flutter applications
- Qt OpenGL 旋转、平移、缩放
- Is BigDecimal safe to calculate the amount? Look at these five pits~~
- rxjs Observable filter Operator 的实现原理介绍
- 【mysql专项】读锁和写锁
- Itext7 uses iexternalsignature container for signature and signature verification
- 023(【模板】最小生成树)(最小生成树)
猜你喜欢

win10 上PHP artisan storage:link 出现 symlink (): Protocol error的解决办法

PHP export word method (one MHT)

Raven2 of vulnhub

网络通讯之Socket-Tcp(一)

Develop plug-ins for idea

OpenGL index cache object EBO and lineweight mode

836. Merge sets (day 63) and search sets

OPenGL 基本知识(根据自己理解整理)

牛牛的组队竞赛

Qt+vtk+occt reading iges/step model
随机推荐
Shutter: overview of shutter architecture (excerpt)
Use of QT OpenGL camera
Wrong arrangement (lottery, email)
Capturing and sorting out external Fiddler -- Conversation bar and filter [2]
Dynamically monitor disk i/o with ZABBIX
DNS多点部署IP Anycast+BGP实战分析
PHP get the file list and folder list under the folder
DEJA_VU3D - Cesium功能集 之 053-地下模式效果
typeScript
ArcGIS应用(二十一)Arcmap删除图层指定要素的方法
Go language to realize static server
023(【模板】最小生成树)(最小生成树)
libvirt 中体验容器
Basic knowledge of OpenGL (sort it out according to your own understanding)
在CoreOS下部署WordPress实例教程
Quantitative calculation research
PHP導出word方法(一mht)
Itext7 uses iexternalsignature container for signature and signature verification
C language improvement article (wchar_t) character type
Master and backup role election strategy in kept