Form biggest number

can be do this problem without strings or like comparing digits of each place and storing the number with largest 100th ,10th,0th place in another array.

if possible please tell…

hello @Diwyanshu
basically string is an array itself (character array).
using string will reduce so much work.
otherwise first we need to write code to convert number into array.
then to compare we need write to merge two array which is time consuming.
string is a better option here.

my test-case not passing please check my code

thank you

please reply to my doubt

print output for each testcase in separate line

can you saw me how i cant understand …i provided link of my code above …

check ur updated code here->https://ide.codingblocks.com/s/235022

a) check compare function.
if xy>=yx then return 1 otherwise 0.

b) i have replaced getline with cin,because not all test cases contains all numbers in same line. using cin is a better option here.

@Diwyanshu
You have reopened this doubt
How can I help you ?