Categorygithub.com/szhou12/leetcode-goleetcode2375-Construct-Smallest-Number-From-DI-String
package
0.0.0-20241220224003-b7cf03a90b2b
Repository: https://github.com/szhou12/leetcode-go.git
Documentation: pkg.go.dev

# README

2375. Construct Smallest Number From DI String

Solution idea

Greedy Algorithm: Same logic as 942. DI String Match

Time complexity = $O(n)$