New course! Every coder should learn Generative AI!
Try a free lesson+ 1
While sorting only first character is considered or whole string is considered for ex abc, acb, aac then, what will be the order of elements values in sorted way?
1 Answer
+ 1
the whole string is sorted. sorted list will be : aac,abc,acb