ColorfulPen / LeetCode

2 stars 2 forks source link

剑指offer05替换空格 #10

Open TomaChen513 opened 1 year ago

TomaChen513 commented 1 year ago

替换空格为%20 常规解法为数组扩容,然后从后往前逐个塞入数据。 避免从前往后遭遇堵塞的问题。