THE TEAL PICKLE CODING CHALLENGE!! Replace all spaces on a string with ‘%20'. I solved this problem with my lover, Swift. TRY IT 👀
![Cover image for [Swift CODE] URLify](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Ftm540dsurl8m7xe9tykv.png)
For further actions, you may consider blocking this person and/or reporting abuse
For further actions, you may consider blocking this person and/or reporting abuse
Based on our experience working with thousands of mobile developer teams, we developed a mobile monitoring maturity curve.
Manthan Ankolekar -
Dmitrii -
Ashish prajapati -
Jesse Williams -
Top comments (2)
Uhhh...
Or if you wanna go all in:
(Snippets are in Python because I don’t know Swift)
Yeah in Swift 5 the syntax is pretty similar
string.replaceOccurrences(of: “ “, with: “%20”)
In everyday practice, I def use that method.
Typically in interviews, interviewers want to see whether the interviewee understands/can derive the algorithm which makes that method work (hence, all the code 😬🙃)