Jump to content
  • Advertisement
Sign in to follow this  
RayChan182008

String

This topic is 4037 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 4037 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!