Advertisement
rishu110067

Untitled

Jan 17th, 2022
906
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement