Solved LeetCode program · 983 of 1,000
#1359 · Count All Valid Pickup and Delivery Options
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.
Expected stdout
90