Count Valid Stock Transaction Sequences
Given three non-negative integers n, k, and m:
- You initially own
kshares of stock. - On each day, you may make at most one transaction:
- buy one share, or
- sell one share.
- Your num...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
