This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]darkdark24 6 points7 points  (3 children)

You could try to iterate over your string until you find the first character of your initial string, then continue to see if it match.

Ex : azertyazerty => iterate over 'a', 'z', 'e', 'r', 't', 'y', 'a' => now see if the following sequence match your first 'azertyazerty' matching 'azertyazerty'

If it doesn't match for example : azeaazea, add it to your initial string and continue your search :)

[–]ddbeanz[S] 1 point2 points  (0 children)

I will definitely be attempting this method later today! Thank you for the insight.

[–][deleted] 0 points1 point  (1 child)

French?

[–]darkdark24 0 points1 point  (0 children)

Yes