A=B
Not enough ratings
A Loaf of Almond Cherry Bread
   
Award
Favorite
Favorited
Unfavorite
Tags: level
File Size
Posted
98.272 KB
13 Apr, 2022 @ 5:22pm
1 Change Note ( view )

Subscribe to download
A Loaf of Almond Cherry Bread

Description
"Please don't put almonds into bread, especially cherry bread!"

Input: A string of "a", "b", "c".
Output: A binary number, the tastiness point of the most tasty sub-string (or maybe, sub-bread).
Each "b" provides 1 point and each "c" provides -1 point. Any "a" should be avoided.
Constraint: 1 <= Input length <= 7
Input contains at least one "b".
Popular Discussions View All (1)
0
18 Feb, 2024 @ 7:42am
The challenge is 8. Can 7 be reached?
295820878
2 Comments
Zill  [author] 10 May, 2022 @ 8:01am 
@ymfact oh of course, but 'a' should be avoided in subbread
ymfact 8 May, 2022 @ 10:01pm 
babb should be a subbread of babb