1class Solution:2 def countOrders(self, n: int) -> int:3 total = 14 mod = 10**9 + 75 for k in reversed(range(2, n + 1)):6 total = total * ((2 * k - 1) * (2 * k - 2) // 2 + 2 * k - 1)7 total = total % mod8 return total
WPM •0 •0
ACC •0 •0
TIME •0