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.
Extremum Permutations
Extremum Permutations
Sort by
recency
|
15 Discussions
|
Please Login in order to post a comment
Here is my solution in java, javascript, python, C, C++, Csharp HackerRank Extremum Permutations Solution
Here is Extremum Permutations problem solution - https://programs.programmingoneonone.com/2021/07/hackerrank-extremum-permutations-problem-solution.html
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.