← All problemsSign in

Marias Cake Shop

Maria owns a bakery that offers a variety of delicious cakes. Each cake has a recipe that contains various ingredients, and each ingredient is represented by a lower-case letter from 'a' to 'z'. An ingredient can be present multiple times in a recipe. An ingredient is called a base-ingredient if it occurs at least once in each of the cake recipes. Given the list of N cake with their recipes, disp

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start