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.
My code generates permutations in a recursive way. While a new element is being added to the current permutation, my code checks whether it complients or not to the rules.
As far 4 testcases are green, the others got timeout.
I don't know how could I fast up my solution.
As I see I cannot share my solution here anymore. There is some regulation here.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Extremum Permutations
You are viewing a single comment's thread. Return to all comments →
My code generates permutations in a recursive way. While a new element is being added to the current permutation, my code checks whether it complients or not to the rules. As far 4 testcases are green, the others got timeout. I don't know how could I fast up my solution. As I see I cannot share my solution here anymore. There is some regulation here.