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\$ May we output a list of strings instead of a single string with linefeeds? \$\endgroup\$Arnauld– Arnauld2019年11月21日 13:10:17 +00:00Commented Nov 21, 2019 at 13:10
-
16\$\begingroup\$ I don't think a single answer uses recursion \$\endgroup\$Jo King– Jo King2019年11月22日 01:39:25 +00:00Commented Nov 22, 2019 at 1:39
-
3\$\begingroup\$ "Human readable" prohibits most of the languages popular here! \$\endgroup\$WGroleau– WGroleau2019年11月22日 02:50:10 +00:00Commented Nov 22, 2019 at 2:50
-
2\$\begingroup\$ @WGroleau Ah, I think I've spotted what's gone wrong here. I didn't require that the code should be human-readable, only the result. \$\endgroup\$AJFaraday– AJFaraday2019年11月22日 09:13:31 +00:00Commented Nov 22, 2019 at 9:13
-
3\$\begingroup\$ Recursion is never necessary. At the very worst, you can just use stack data structure to have your own "recursion" in a flat loop, ending when the stack is empty. \$\endgroup\$Tomáš Zato– Tomáš Zato2019年11月22日 11:41:50 +00:00Commented Nov 22, 2019 at 11:41