Recursion Dictionary Order- Larger

its not passing any test case but its showing correct in custom inputs

@i_am_dekard_shaw
Hello Abdullah,
Your approach is correct but ur order is not correct (u r printing in reverse of lexicographical order).
to rectify it follow these steps:
a) sort vector in lexicographical order (i,e without giving third param in sort function)
b) then use find function to find iterator pointing to string s.
c) now increment iterator to next location
d) from here( from current iterator loation) print all string till iterator!=v.end()

@i_am_dekard_shaw
something like
image

1 Like

@i_am_dekard_shaw
Hello abdullah,
if u doubt is resolved then pls mark it as resolved

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.

1 Like