6 kyu
Strip Url Params
2,723 of 4,429jhoffner
Description:
Complete the method so that it does the following:
- Removes any duplicate query string parameters from the url (the first occurence should be kept)
- Removes any query string parameters specified within the 2nd argument (optional array)
Examples:
stripUrlParams('www.codewars.com?a=1&b=2&a=2') === 'www.codewars.com?a=1&b=2'
stripUrlParams('www.codewars.com?a=1&b=2&a=2', ['b']) === 'www.codewars.com?a=1'
stripUrlParams('www.codewars.com', ['b']) === 'www.codewars.com'
Strings
Algorithms
Similar Kata:
Stats:
Created | Apr 9, 2013 |
Published | Apr 9, 2013 |
Warriors Trained | 9798 |
Total Skips | 2461 |
Total Code Submissions | 54063 |
Total Times Completed | 4429 |
JavaScript Completions | 2723 |
Python Completions | 1649 |
Ruby Completions | 75 |
Total Stars | 227 |
% of votes with a positive feedback rating | 84% of 712 |
Total "Very Satisfied" Votes | 517 |
Total "Somewhat Satisfied" Votes | 160 |
Total "Not Satisfied" Votes | 35 |