Re:Mystery Math Whiz and Novelist Advance Permutation Problem
by robinhouston on Tuesday November 06, 2018 @11:25AM
(#18392393)
It is different because a safe combination may contain the same digit more than once, so the intended solution is a de Bruijn sequence: https://en.wikipedia.org/wiki/De_Bruijn_sequence
And if so - if someone solves this programming task on leetcode have they not then also solved the permutation problem from OP?