Buddy and interview
CodeChefOpen on judge ↗
Buddy has recently got an interview call from his dream company. However, to crack the interview, he needs to answer a few queries. For each query, the interviewer will ask him the $specialvalue$ corresponding to a positive integer. The special value of an integer $N$ denoted by $specialvalue(N)$ is defined as: $specialvalue(N) = specialvalue(∏(Di-1))+1$ $for$ $N > 1$ where $Di$ is the i-th dis
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