String STL Quiz

Plz explain questions no. 5 and 10. Thanks.

also send the question of quiz which you want to ask

Given a list of N integers but since they are big , they are given as string in the input. Now you are asked to form a number by concatenating all the given N numbers in any permutation so that number formed has biggest decimal value. What would that biggest number for N=4 and list of number {54,546,548,60}?

Find the output of the following program. void f(){ string s=”abhuhba” ; bool flag=true; for(int i=0;i<s.length()/2;i++) if(s[i]!=s[s.length()-1-i])flag=false; if(flag)cout<<”YES”; else cout<<”NO”; }

what is your doubt in this??
ans is NO only

6054854654
this the ans
they are straight forward questions
what is your doubt in it??

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.