6 kyu
Remove the parentheses
2,666 of 7,216topping
Description:
Remove the parentheses
In this kata you are given a string for example:
"example(unwanted thing)example"
Your task is to remove everything inside the parentheses as well as the parentheses themselves.
The example above would return:
"exampleexample"
Notes
- Other than parentheses only letters and spaces can occur in the string. Don't worry about other brackets like
"[]"
and"{}"
as these will never appear. - There can be multiple parentheses.
- The parentheses can be nested.
Strings
Algorithms
Regular Expressions
Fundamentals
Similar Kata:
Stats:
Created | Oct 6, 2020 |
Published | Oct 6, 2020 |
Warriors Trained | 15872 |
Total Skips | 854 |
Total Code Submissions | 35448 |
Total Times Completed | 7216 |
Python Completions | 2666 |
Rust Completions | 237 |
JavaScript Completions | 2425 |
Haskell Completions | 89 |
C Completions | 276 |
C# Completions | 501 |
C++ Completions | 497 |
Java Completions | 748 |
NASM Completions | 24 |
COBOL Completions | 7 |
Factor Completions | 11 |
BF Completions | 15 |
Total Stars | 304 |
% of votes with a positive feedback rating | 93% of 942 |
Total "Very Satisfied" Votes | 821 |
Total "Somewhat Satisfied" Votes | 106 |
Total "Not Satisfied" Votes | 15 |
Total Rank Assessments | 22 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |