your trim function is not working properly.
To fix it, you can try
*string trim(string bstring) {*
* for (int i = 0; i < 1000; ++i) {*
* if (bstring[0] == '0') bstring = bstring.substr(1);*
* else return bstring;*
* }*
* return bstring;*
*}*
Also you have nested loop reusing loop variable *i*, though it does not
affect the correctness, it is not a good pattern.
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-code/c2719fe2-4f66-42be-970f-3fcffee7fa06%40googlegroups.com.