Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
reverseparentheses.go
reverseparentheses_test.go

README.md

Reverse Parentheses

Complete the function that reverses characters in (possibly nested) parentheses in the input string. Input strings will always be well-formed with matching ()s.

Examples

(bar)             => rab
foo(bar)baz       => foorabbaz
foo(bar(baz))blim => foobazrabblim

Run tests with benchmarks

go test -bench .