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.
If you google the ASCII table it might make more sense but basically the characters 0-9 are grouped together on the ascii table. Meaning if you take the character of 0 ('0') and add 1 to it, you'll get the character '1' and its basically how this coder is converting int to char and then throws it into the string(which is an array of chars, c++ strings are bit fancier than that tho).
Could someone explain how the line, "res[is] = '0' + digits[id++];" is working? I don't understand why the '0' is necessary. Thanks!
I did something very similar. Only difference is I mapped all 4 of "T", "A", "C", and "G" to different characters before doing another 4 "replaceAll()"s. So this runs slightly faster than mine. Good job!