Hacker News new | ask | show | jobs
by skocznymroczny 2347 days 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.

1 comments

No it didn't and it doesn't :)