Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Well it is not super unrealistic as this code could be run under the Win16 API on a 32-bit Windows system (or an old DOS machine), which only has 16-bit
int
s.This comment is hidden because it contains spoiler information about the solution
//remove leading zeros if any
for (;*result == '0'; result++);
after this you can not free result pointer, memleak!
Очень круто! Нестандартое решение, много высшей математики, я восхищён!
Will not work if the number of identical characters causes an int overflow, +1
Не будет работать, если количество одинаковых символов вызовет переполнение int, +1