Cracking Passwords
CodeChefOpen on judge ↗
Chef has finally figured a way to crack passwords on any website. He has narrowed it down to a function which evaluates the hash value of password after which it is trivial for Chef to find the password. The function is given as $F[i] = 2*F[i-1] + 3*F[i-2] + 2^{i-1} + 3^{i-2} $ and $F[0] = 1$ and $F[1] =1$. Chef is busy cracking some more passwords. He asks for your help to answer some queries
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