The TransCompilator

Solved LeetCode program · 983 of 1,000

#1359 · Count All Valid Pickup and Delivery Options

Hard Math chunk-20.md

Original English source

The orders is 3, while the modulus is 1000000007. The answer is 1.
For every step from 1 to orders.
Set answer to answer times step times (step times 2 minus 1) modulo modulus.

Show answer.

Open in Playground Browse all 1,000 problems

Expected stdout

90