Skip to content

Recursive reverse string #6

@hellocan

Description

@hellocan

Your objective is to complete a recursive function reverse() that receives str as String and returns the same string in reverse order

Rules:
reverse function should be executed only N times. N = length of the input string
helper functions are not allowed
changing the signature of the function is not allowed
Examples:
reverse("hello world") = "dlrow olleh" (N = 11)
reverse("abcd") = "dcba" (N = 4)
reverse("12345") = "54321" (N = 5)

where By
http://www.codewars.com/kata/536a9f94021a76ef0f00052f/train/javascript

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