Skip to content

Problem statement doesn't match solution #12

Open
@RobLewis

Description

@RobLewis

The "secret Extra Challenge" in Lesson C-1 is made extra challenging by the fact that the problem is stated in terms of Queue 1, while the solution is all about Queue 2.

Regardless, I'm confused by the solution: .getPassengers() is called as though it has already finished processing the queue, but isn't this processing done item-by-item? How can .getPassengers() already have the final answer as to who is on the elevator?

Another thing I'm not clear on: simply re-using an Observable like these Queues seems to reset them to start over at the beginning. Can you discuss and clarify?

Thanks for making this—it's an enjoyable way to learn. I have frankly been having some trouble wrapping my mind around the whole Rx concept.

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