You are given a string road and an integer budget.
The string road represents the condition of a road, where:
'.' represents a smooth surface.
'x' represents a pothole.
Repairing a contiguous sequence of
Return the maximum total number of potholes that can be repaired within the given budget.
Constraints:
road.length
budget
road consists only of characters '.' and 'x'.
You are given a string road and an integer budget.
The string road represents the condition of a road, where:
'.' represents a smooth surface.
'x' represents a pothole.
Repairing a contiguous sequence of
Return the maximum total number of potholes that can be repaired within the given budget.
Constraints:
road.length
budget
road consists only of characters '.' and 'x'.