+ 1

Hello I need help to fix my code.Please help!

It's a problem in the community section named "How Far". Here's my code:- https://code.sololearn.com/cbuMhzY222xu/?ref=app

18th Jul 2023, 3:52 PM
Vaibhav Pandey
3 Réponses
+ 4
think again what would be happen if „P“ is bevor „H“ in the input. like this: BPBBBBHBB That cases do you not fullfill in the moment with your code.
18th Jul 2023, 4:22 PM
Angela
Angela - avatar
+ 3
great
18th Jul 2023, 4:48 PM
Angela
Angela - avatar
+ 2
Angela Thank you very much it worked!
18th Jul 2023, 4:38 PM
Vaibhav Pandey