Jump to content
  • Advertisement
Sign in to follow this  

String

This topic is 3858 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a homework for write a program that takes a string and prints the longest substring that is repeating. If there are more than one such substring, the program should print the one that is closest to the right-end of the input string. A string s is repeating if it can be written as s1s2 · · · sn, where the substrings s1 = s2 = · · · = sn and n 2. For example, aa, abcabc, and xyxyxy are all repeating. Anybody can assist me.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by RayChan182008
Anybody can assist me.


Not without breaking the forum rules. However, if you have some code written that doesn't work perfectly we can point any mistakes out to you.

Share this post


Link to post
Share on other sites

This topic is 3858 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!