Fun with Stickers
CodeChefOpen on judge ↗
Nancy got a new set of stickers on her birthday and is excited to play with them . She wonders that whether she can make any particular given word by cutting and rearranging these stickers or not , if Yes , then what will be minimum stickers she required to do so and if No , then print '-1'. She is in kindergarten and asked you to solve for her. Note : The stickers are given in infinite quantity
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