sir is this the correct way to approach this problem
and sir what are the mistakes
sir is this the correct way to approach this problem
and sir what are the mistakes
@qudsiya no its not correct
let us suppose you have to arrange two numbers A and B to obtain the larger number. You will have to decide which number to put first – we compare two numbers AB ( B appended at the end of A) and BA (A appended at the end of B). If AB is larger, then A should come before B in output, else B should come before. You can append them as strings for comparison.
reference code
(https://ide.codingblocks.com/s/266179)