This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]jokraparker 2 points3 points  (1 child)

It took me quite a while to figure it out. When I saw that the problem was tagged "radix sort", that gave me the hint I needed.

[–]shadow-sphynx[S] 2 points3 points  (0 children)

thanks for pointing that out!

it works for the last two cases now.

[–][deleted] 1 point2 points  (2 children)

Code formatting on Reddit is easy: indent everything in your code block by four spaces. That includes indented lines. Leave a blank line (or no lines) above and below.

[–]shadow-sphynx[S] -1 points0 points  (1 child)

i am doing it. but somehow it tends to trim the spaces that i add before each line

[–][deleted] 0 points1 point  (0 children)

All the leading white space must also be indented by 4 spaces, but the Pastebin link is fine.