Chef and Alphabets
CodeChefOpen on judge ↗
Chef has now started a new restaurant in your city, but he can serve only one customer per day. The restaurant is pre-booked for $N$ days, and each customer has decided one out of $26$ tasty dishes from the menu (there are only $26$ dishes on the menu). Each dish on the menu is represented by one of the $26$ lowercase English alphabet. Now the difficulty for cooking each dish is alphabetically inc
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