Given a list of strings of different length, we need find out string that would come in first in dictionary among strings generated by combination of given strings.
For Input: cda,bcs,fgr,cd
output should be bcscdcdefgr
Is there any better way than generating all the combinations of strings and comparing them? Please help.
https://stackoverflow.com/questions/65912756/find-out-string-that-would-come-in-first-in-dictionary-among-strings-generated-b January 27, 2021 at 12:06PM
没有评论:
发表评论