We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I got this C++ solution after quite some hit and trial. At first I even tried breaking the fn[fn[i]] logically just to check if it was working. Now in the given solution I have to ask that why do I have to initialize fn[0]=0 to get the final result. Any clarification would be very helpful. Thanks.
Security Permutations
You are viewing a single comment's thread. Return to all comments →
I got this C++ solution after quite some hit and trial. At first I even tried breaking the fn[fn[i]] logically just to check if it was working. Now in the given solution I have to ask that why do I have to initialize fn[0]=0 to get the final result. Any clarification would be very helpful. Thanks.