lintcode
-
LintCode – Space Replacement
Problem: http://www.lintcode.com/en/problem/space-replacement/ Solution: Calculate spaces. Create a new string with the original length + 2 * the number of spaces. Use the new string...
Problem: http://www.lintcode.com/en/problem/space-replacement/ Solution: Calculate spaces. Create a new string with the original length + 2 * the number of spaces. Use the new string...