Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • $\begingroup$ Thank you for the exercises.This makes a lot more sense now:) $\endgroup$ Commented Jan 23, 2019 at 21:47
  • 3
    $\begingroup$ Depending on how you interpret "find a subset of sum k", you can do this in constant time. Not if you insist on k numbers, but if you allow something like "the numbers from 12 to 17, plus the numbers from 19 to 24" or "the numbers from 12 to 24 except 18" as the solution. $\endgroup$ Commented Jan 24, 2019 at 1:15