Greetings sir/mam
I think there’s a problem in sample output of this question as if we arrange these strings lexographically (apple, batman, bat) the output should be:
apple
bat
batman
whereas the sample output in this question is :
apple
batman
bat
please tell me if i’m wrong and please tell me what really lexographical order is.???
is it the methodology by the means of which the words are arranged in a dictionary?? and if it’s so then i think there’s is something wrong with the sample output…