热门标签
更多>
搜索结果
查询Tags标签: abbr,共有 2条记录-
[LeetCode] 408. Valid Word Abbreviation
A string can be abbreviated by replacing any number of non-adjacent, non-empty substrings with their lengths. The lengths should not have leading zeros. For example, a string such as "substitution" could be abbreviated as (but not limited to…
2022/7/7 23:21:55 人评论 次浏览 -
408. Valid Word Abbreviation
This is two points problem, just concentrate and carefully deal with the characters, then the problem can be solved. This is a very good problem for writing all kinds of edge test cases.public boolean validWordAbbreviation(String word, String abbr) {i…
2022/2/4 6:12:29 人评论 次浏览