Query On Strings
CodeChefOpen on judge ↗
Aniket loves strings and hence he keeps expanding his collection of strings. Harsh came up with an idea to tease Aniket. Harsh can ask Aniket to do one of the following operations to his collection of strings (Initially he has an empty collection). - Add: Add a given string to the collection. - Ask: Ask if there exists a group of k strings such that they have a common suffix of length l . - Rem
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start