Skip to content

Move last chunk challenge to cleared chunk challenge to get rid of replace_empty_or_append #1897

@dankrad

Description

@dankrad

Suggestion, but not sure if it breaks when multiple operations are involved: move the last element to the index that is cleared, and reduce the length by one. That way you have minimal modifications, while keeping the list small, and not searching through it with the awkward replace or append function.

Originally posted by @protolambda in #1705

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions