Python icon indicating copy to clipboard operation
Python copied to clipboard

Add Longest Repeated Substring algorithm

Open Rupeshhsharma opened this issue 2 months ago • 0 comments

This PR adds an implementation of the Longest Repeated Substring (LRS) algorithm in strings directory.

  • Time complexity: O(n)
  • Returns the longest substring that appear

File added:

  • strings/longest_repeated_substring.py

Rupeshhsharma avatar Nov 21 '25 13:11 Rupeshhsharma