on compiling and checkmoutput is correct but on submittting all testcases are wrong
Form biggest number
You cannot just check a > b. Check a+b > b+a .
because if you check 9 990
then your answer will be 9909 but actual answer should be 9990.
when we print char array we can simply print cout<<arrayname only but using string array of strings when I tried to print strings by cout<<stringarray name it print the address of first elements why?
can you pls send source of any article consting of diff btw cstring vs char array vs array of string, when to use which?
and also which header fiiles contains which string ?
Use
#include<bits/stdc++.h>
alwasy use string for no confusion .
cstring or cppstring?
use bits/stdc++.h. Its a universal header. You do not need to worry about other things then. Focus on the logic part
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.