You are given a hamsters where each character represents a position in a line:
'H' represents a hamster.
'.' represents an empty space.
You may place food buckets on empty positions. A hamster situated at index i is fed if there is a food bucket placed at index
Return the minimum number of food buckets needed to feed all the hamsters, or
Constraints:
hamsters.length
hamsters[i] is either 'H' or '.'.
You are given a hamsters where each character represents a position in a line:
'H' represents a hamster.
'.' represents an empty space.
You may place food buckets on empty positions. A hamster situated at index i is fed if there is a food bucket placed at index
Return the minimum number of food buckets needed to feed all the hamsters, or
Constraints:
hamsters.length
hamsters[i] is either 'H' or '.'.