You are viewing a single comment's thread. Return to all comments →
Here you can find formula with the proof http://www.geeksforgeeks.org/g-fact-42/
I'm trying to understand how this problem can be mapped to a n-ary tree.
I've tried several approaches but couldn't succeed.
Could you explain the approach you have in mind?