Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion strings/booths_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class BoothsAlgorithm:
Time Complexity: O(n) - Linear time where n is the length of input string
Space Complexity: O(n) - Linear space for failure function array

For More Visit - https://en.wikipedia.org/wiki/Booth%27s_multiplication_algorithm
Reference: https://www.cs.ubc.ca/~ksbooth/PUB/LCS.shtml
"""

def find_minimal_rotation(self, string: str) -> str:
Expand Down
Loading