Ask Your Question
2

What is the task of the sameEnds challenge on Codingbat?

asked 2022-03-06 11:00:00 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-06-24 01:00:00 +0000

qstack gravatar image

The task of the sameEnds challenge on Codingbat is to write a function that takes a string as input and returns the longest substring that appears at both ends of the string without overlapping. For example, if the input string is "abXYZba", the function should return "ab". If there is no such substring, the function should return an empty string.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-03-06 11:00:00 +0000

Seen: 14 times

Last updated: Jun 24 '22