Suffix Array Problems

Master suffix array problems with AI-powered solutions. Get instant coding assistance during your technical interviews for all 3 problems in this category.

Total Problems: 3
Hard: 3
Showing 3 of 3 problems

Suffix Array LeetCode Problems List

  • 1122. Longest Duplicate Substring - Hard - Suffix ArrayGiven a string s, consider all duplicated substrings: (contiguous) substrings of s that occur 2 or more times. The occurrences may overlap. Return any... Topics: String, Binary Search, Sliding Window, Rolling Hash, Suffix Array, Hash Function
  • 2051. Longest Common Subpath - Hard - Suffix ArrayThere is a country of n cities numbered from 0 to n - 1. In this country, there is a road connecting every pair of cities. There are m friends numbere... Topics: Array, Binary Search, Rolling Hash, Suffix Array, Hash Function
  • 3482. Construct String with Minimum Cost - Hard - Suffix ArrayYou are given a string target, an array of strings words, and an integer array costs, both arrays of the same length. Imagine an empty string s. You c... Topics: Array, String, Dynamic Programming, Suffix Array

Related LeetCode Topics

Suffix Array LeetCode Problems - Interview Coder