Sometimes, when looking at other people's golfing attempts, you see a trick that will improve your own one, or you might see a glaring improvement that is not entirely obvious to OP. For instance, in this code-golf the slightly glaring improvement is to make n
an int instead of a string, yielding:
n=input()
while`n`!=`n`[::-1]:n+=int(`n`[::-1])
print n
Which is 7 characters shorter.
How should this be handled, because in the above case I'm clearly spring boarding from another's work, but if I only give a comment I will not get reputation (comments upvotes don't get reputation AFAIK). On the other hand, posting it as my own solution feels too much like stealing. What should the policy on this be? Because I think this type of thing will happen often.