really like your min max solution!
may anyone explain the code started from b += c > 1 ? I don't understand why c, which is index, is added to pointer b. This expression will give value of b after assigning, which must be > 1. Also, will this update pointer b and left some memory unused?
Besides, as a terminating null character is automatically appended after the content written in snprintf, how can the code solve this problem?
b += c > 1
Cool to update pointer b with snprintf!
you propably should store the value of sqrt(num) instead of calling the function each iteration
This comment is hidden because it contains spoiler information about the solution
I could have never thought you can do it in a single line of code!
I try to make a solution like this but I failed :(
It should be 'terrorists', not 'terrorist'...
It would be better if u will add ready dictionary into description. Too boring and unnecessary task to create it.
Very clever I always thought that func replace replace all occurance :D
I would love an explanation of this one.
concatenating the strings is much more expensive than changing individual characters. Also one should always reserve vectors upfront when the size is known imo.
Sandip, you hired!
Is it really best for a traffic light to go 'green' as the default case?