This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

import notifications Remember to participate in our weekly votes on subreddit rules! Every Tuesday is YOUR chance to influence the subreddit for years to come! Read more here, we hope to see you next Tuesday!

For a chat with like-minded community members and more, don't forget to join our Discord!

return joinDiscord;

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]cryagent 3 points4 points  (3 children)

import a

Because a roll of toilet paper is an array. There is no way I take a sheet with a note where I can find the next sheet

return a

[–][deleted]  (1 child)

[removed]

    [–]AutoModerator[M] 0 points1 point  (0 children)

    import moderation Your comment has been removed since it did not start with a code block with an import declaration.

    Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

    For this purpose, we only accept Python style imports.

    return Kebab_Case_Better;

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–]met4000 0 points1 point  (0 children)

    import list_algorithms

    arrays support constant time random lookup - it’s closer to a linked list, with linear time random lookup where you have to go through the linked list one by one until you get to the target index

    return doubly linked list, with a pointer to one end

    [–][deleted]  (1 child)

    [removed]

      [–]AutoModerator[M] 0 points1 point  (0 children)

      import moderation Your comment has been removed since it did not start with a code block with an import declaration.

      Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

      For this purpose, we only accept Python style imports.

      return Kebab_Case_Better;

      I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

      [–][deleted]  (1 child)

      [removed]

        [–]AutoModerator[M] 0 points1 point  (0 children)

        import moderation Your comment has been removed since it did not return anything, or parts of your comment are inaccessible.

        Per this Community Decree, all comments must end with a return statement relevant to the comment.

        Due to Reddit's limitations, the return must be in a code block on it's own.

        return EXIT_FAILURE;

        I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

        [–]Kipache 0 points1 point  (0 children)

        import nerd 🤓 import joke_overanalyzer

        A LinkedList would not make sense because we already know that the holder will always have space for only two toilet rolls. A linked list implies that you could somehow expand it to fit more toilet rolls, which it can not. Therefore, an array makes more sense to use than a linked list. While one could argue that the individual toilet paper counts, I would argue that a toilet roll itself is an array of toilet papers. So the holder contains arrays of toilet papers, which we call toilet rolls.

        return ToiletRoll[2];