Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
โK
Get Premium
Leetcode 1044. Longest Duplicate Substring
Find the longest contiguous substring that appears at least twice (overlaps allowed) in a given lowercase string, or return "" if none exists. With n up to 3ยท10^4, this typically requires efficient techniques such as suffix arrays/LCP or binary search with rolling hash.
Asked at:
Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Mid November, 2024
Amazon
Junior
Longest Repeating Substring: Find the longest duplicated substring in a given string. If no such substring exists, return an empty string.
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.