Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAOk, I'm not sure if I've over complicated matters, but I have the right answer and it only took a few minutes to build.
Most of my time was spent staring at the question because of my brain thing...
Fairly straightforward once my brain stopped doing that thing it does.
M.
This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.
Solution attached
This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.
This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.
My solution seems to be similar to some of those here. The only weakness I can see of this method is that if the search word is one that is commonly contained in other words (e.g. 'water' and 'watermelon' 'watered') - this method would capture not just that exact string but words that contain that string as well. If that ends up being a problem, then I can see replacing punctuation with spaces and searching for that word with a trailing space as a workaround.
This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.
Not a very elegant solution but I got there in the end!
This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.
I'm not sure this is the best way, but it does work
This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.
This one proved to be a little more difficult than I first thought. Do I parse? Do I do fancy joins? In the end, I started down a path and got close to the answer, but I ended up needing some help from the community to get the solution. Excellent challenge!
Solution Attached
This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.
I enjoyed this one. 🙂 Really straight forward, so spent time ensuring I could do it with as little tools as possible. I haven't spoilt it yet posting to look at solutions to see how I did.
This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.