Advertisement
rishu110067

Untitled

Jan 17th, 2022
1,005
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.20 KB | None | 0 0
  1. class Solution {
  2.     public int countOrders(int n) {
  3.         long f = 1;
  4.         for(int i=2; i<=n; i++){
  5.             f = f * i * (2*i - 1) % 1000000007;
  6.         }
  7.         return (int)(f);
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement