Skip to content

Solution to Exercise 3.14 #862

@jonathantorres

Description

@jonathantorres

mystery will reverse the list x in-place. Initially v looks like this:
3 14_a

After evaluating const w = mystery(v), v and w become:
3 14_b

  • v prints [a, null]
  • w prints [d, [c, [b, [a, null]]]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions