Minimum Inefficiency After Filling Wildcards
Asked at Amazon · Coding Questions · Difficulty: Medium
`server_type` is a string of `'0'`, `'1'`, `'?'`. Inefficiency is the number of adjacent pairs with different characters. Replace each `'?'` with `'0'` or `'1'` to minimize inefficiency; return the minimum.
Loading the problem…