Skip to content

Optimise Day 22 part 1 #8

@abavoil

Description

@abavoil

To make the search for the n-th price in O(log(n)) time instead of O(n), compute the transition for n=1, then use it twice to compute the transition for n=2, then use it twice to compute the transition for n=4, etc until 2^23.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions