beautiful word 的定義,在一個字串內,英文字母順序前面的字母要比順序後面的字母的數目還要多。如果是 "aab" 則是、 "abb" 則不是、"aabb" 也不是,若只有一種字母 ,例如 "aa" 那也算是。
(1) Sample001 限制為一行做完
(2) Sample002 不限制一行做完,效能也比較好
(3) Sample003 將 002 的減法改為關係運算子
-
Notifications
You must be signed in to change notification settings - Fork 0
billchungiii/BeautifulWordSamples
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published