LeetCode Question · Aug 2022 · USA

Amazon | Oncampus | Number of ways

6 upvotes 1,182 views 13 replies

Question Details

Given a number, find all possible ways to express that number as the product of 1, 2, 5, and 10 example-1 input: 5 output: 4 explanation: 1) 1x5 2) 1x3 + 2x1 3) 1x1 + 2x2 4) 5x1 example-2 input: 3 output: 2 explanation: 1) 1x3 2)...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding