And substitute all dot matches with required string by String#gsub. Ruby code: # Leetcode: 1108. Defanging an IP Address.
確定! 回上一頁