My question is i have inp=[1,52,234,65,87,57,96,0,3]
and output should be output=[0,1,52,3,234,65,96,87,57]
. if the last digit is the same you leave them in same order as they are on input.increasing.
inp=[1,52,234,65,87,57,96,0,3]
output=[0,1,52,3,234,65,96,87,57]
how you sort integers on last digit?