Find a simple partition P[n]. E.g. P[10] = 4 + 3 + 2 + 1.
  1. There are many solutions, compute just one set.
  2. Don't repeat numbers.
  3. Be Greedy ;-)
  4. To check against trivial solutions, E.g. [x-k, k] etc; but I'll provide you with one to start.
  5. Show me how you write the whole solution.
Bonus points if you solve the general problem of producing all unique partitions of [n].

Solution Stats

113 Solutions

35 Solvers

Last Solution submitted on May 25, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...