Count Distinct Substrings of Length K
Medium
Rolling Hash & Rabin-Karp
Print the number of different substrings of length k in s.
Constraints
1 <= k <= |s| <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.