@MagicOctopusUrn Yeah but the poster asked a general programming question, which is off-topic. Ton changed it so that it's a challenge, but I think we should not edit programming questions to make them on-topic.
@AdmBorkBork For input length I, my incorrect approach was computing output size n,p as n=floor(sqrt(I)), p=I/n. That accidentally works when the true size satisfies p=n+1 or p=n. The new test case detects that
@Mr.Xcoder Fair enough. I felt like we'd be killing 3 birds with one stone. Helping OP with his problem. Helping OP understand the site. Getting a new fun challenge. But I see the counterpoints too tbh.
the SE rule I'm referring to is described as one of the reasons to reject a suggested edit during a review
> This edit deviates from the original intent of the post. Even edits that must make drastic changes should strive to preserve the goals of the post's owner.
@EriktheOutgolfer I mean, is an edit which makes a post valid worse than an invalid post? Is stealing a challenge from a new user who mistook this for stackoverflow not damaging? How should we handle good challenges posted wrong?
@ThomasWard I do have the power to roll back too, but the reason is that there's already an answer in there and the usual thing we do when that happens is to leave it as-is, no need to make more mess and answer deletions and other stuff ;)
I mean I've even seen newer users type 4 paragraphs for a challenge, and even though the challenge was pretty awesome, it was closed because: "no tags", "unreadable".
@ThomasWard it looks like the only substantive change is making it code-golf, and as far as I know there's no definitive rule about whether that's allowed
@ThomasWard I do have the power to roll back too, but the reason is that there's already an answer in there and the usual thing we do when that happens is to leave it as-is, no need to make more mess and answer deletions and other stuff ;)
so, ping can be disregarded for the most part.
as i said, i'mma go curl up in the corner and be silent for a while.
@Mr.Xcoder i am concerned that editing clear programming questions to on-topic golf challenges still gets the OP a somewhat useful answer that incentivizes posting off-topic help questions
@Doorknob so unless you are stating that Erik needs to change how he operates, I'll accept the above of what he stated as the rules :) (Adding a winning condition, though, to what would otherwise be an offtopic question and making something offtopic as not code-golf on topic , sounds like a major breach in the rules somehow... but I'm also exhausted tired so I may be under/over analyzing)
separately, i don't think the question is that interesting, and even if it's not an exact dupe, expressing numbers as sums from a fixed set is pretty well-trodden
so i wouldn't be that excited to "salvage" it from a help question