Nice solution
The problem here is that the line
strReturn = bitCurrent + strReturn;
is grossly inefficent. (It first creates a string out of the int, then concatenates it with the existing string, creating yet another string. I'd guess about 90% of the execution time is this routine would be on just that line.
This is fire
Wow. Just wow.
This comment is hidden because it contains spoiler information about the solution
ty mate. That's exactly what I thought too.
strings are an IEnumerable. The ToCharArray() is unnecessary.
What makes you think the Replace() would leave spaces on the start or end?
Loading collection data...
Nice solution
The problem here is that the line
strReturn = bitCurrent + strReturn;
is grossly inefficent. (It first creates a string out of the int, then concatenates it with the existing string, creating yet another string. I'd guess about 90% of the execution time is this routine would be on just that line.
This is fire
Wow. Just wow.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
ty mate. That's exactly what I thought too.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
strings are an IEnumerable. The ToCharArray() is unnecessary.
What makes you think the Replace() would leave spaces on the start or end?
Loading more items...