6 kyu
Strip Url Params
2,720 of 4,420jhoffner
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 | 9780 |
Total Skips | 2460 |
Total Code Submissions | 54023 |
Total Times Completed | 4420 |
JavaScript Completions | 2720 |
Python Completions | 1645 |
Ruby Completions | 73 |
Total Stars | 227 |
% of votes with a positive feedback rating | 84% of 709 |
Total "Very Satisfied" Votes | 515 |
Total "Somewhat Satisfied" Votes | 159 |
Total "Not Satisfied" Votes | 35 |