An array of strings is given and you have to find out whether a circular
chain with all character can be formed or not?
Circular chain is formed in way that: if last char of a string is equal to
first char of another string then it can be joined.:
like axxxxb bxxxxxc ===> axxxxxbbxxxxxc (Notice that it got joined at
b)
example
{"asdsb","csasaa", "bssssc"}
Answer: TRUE
{"asdsb","csasaa", "bssssc", bddddc"}
Answer: FALSE
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/algogeeks/-/WGN5GLyIP_QJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.