← ALL NOTES
Array

3577. Count the Number of Computer Unlocking Permutations

Given computers with levels com. Computer 0 is unlocked; computer i can be unlocked only after some already-unlocked j with com[j] < com[i]. Find the number of unlocking-order permutations, modulo…

Loading…