The Table Manager
CodeChefOpen on judge ↗
You are assigned the task of managing table allocation in a restaurant. The total number of tables available is 101. Table numbers are assigned based on the name of the customer. To allocate or de-alloctate a table use the following function For a name "a1....an" Table number = K mod 101 where K = 19*(ASCII(a1)*1+ASCII(a2)*2+....+ASCII(an)*n) In case of an already allocated table allocate the
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