valar_dohaeris's blog

By valar_dohaeris, history, 8 years ago, In English

How to find the number of dearrangements for value N. For smaller(N), we can use DP to find the value, but when N is large around 10^9, how do we find it efficiently? MOD = 10^9 + 7.

Full text and comments »

  • Vote: I like it
  • -7
  • Vote: I do not like it