Skip to main content

Timeline for Sandbox for Proposed Challenges

Current License: CC BY-SA 4.0

9 events
when toggle format what by license comment
Jul 8, 2021 at 1:14 comment added caird coinheringaahin g Mod What do mean by "all possible strings"? Is this restricted to all strings consisting of printable ASCII? The entire Unicode table?
Jul 1, 2021 at 16:40 comment added l4m2 @jeje An easily thought solution is just use an unused char as split, but that likely be longer
Jul 1, 2021 at 8:12 history edited je je CC BY-SA 4.0
added 31 characters in body
Jun 7, 2021 at 8:03 comment added je je Here's an implementation in Python tio.run/…
Jun 7, 2021 at 8:02 comment added je je @Bubbler Sure, it's possible. One approach is to store the program's source in a string, and then run some sort of code that generates every possible string, checking after each generation whether the generated string contains the source string, and only printing if it doesn't. There might be some trouble in making sure the source isn't present in a combination of two consecutively generated strings (i.e. if the source code is AB, then outputting XA and BX consecutively is an issue), but a simple solution to that is to insert a character not present in the source between each pair.
Jun 7, 2021 at 1:39 comment added Bubbler It should still output every other possible string, just not itself (or, obviously, any strings which it is a substring of) Okay, the task makes sense now. I think you'll need to add that information somewhere before the sentence I quoted. Now I wonder if the task is actually possible...
Jun 7, 2021 at 1:13 comment added je je @Bubbler The strings don't have to be separated. What I mean is that every string should be a substring of the "main" output if that makes sense. Put another way, running a regex match on the output for any string of characters (other than the source) should return at least one result. Would adding something to that effect clear up that confusion?
Jun 7, 2021 at 1:06 comment added Bubbler How are the strings in the output separated? Some previous challenges about "print all possible strings" were closed as unclear because of this.
Jun 7, 2021 at 1:03 history answered je je CC BY-SA 4.0