String Search
CodeChefOpen on judge ↗
Simple, crisp and clear. This question is a feast for those who have done their Dusshera assignments on time. Charan possesses a set of strings with him and allows his friend Rishi to have a look on them once. To check the memorizing ability of Rishi, Charan then asks Rishi Q number of queries. In each query, Charan asks Rishi if a particular string was present as a prefix of any string in the se
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