Dictionary Order(smaller)


sir I am not able to sort my answer as I am not storing it.please help

Hi @Megha2468
try declaring a set globally of strings.
store all strings u r outputting in set.
and later output elements of sets later on.
for outputting use,
for(auto i:s){
cout<<i<<endl;
}
Hope dis helps.

sir I did it but got stuck


please correct the code

@Megha2468
refer to dis updated code.


Hope dis helps.