4 ms·
Here's an optimized version: char* convert(char* str) { str[3] = "5"; return str; } I tried it with your testcase and it worked, so it passes 100% of
by skocznymroczny 7y ago
Here's an optimized version:
char* convert(char* str)
{
str[3] = "5";
return str;
}
I tried it with your testcase and it worked, so it passes 100% of the tests I've ran.
- ithinkso 7y agoNo it didn't and it doesn't :)