2 ms·You still need to generate all the permutations, even if you use dynamic programming.by melony 4y agoYou still need to generate all the permutations, even if you use dynamic programming.