Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
love switch!
How is using three regexes considered a "best practice"? As the saying goes "Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems." Sure, regexs have their place, but using them here is like sqashing a gnat with a sledgehammer. If you'd profile this code, I it would be expensive to run vs. other iterative approaches.
THe instructions are way too involved and confusing for a 7...
Aha! a french felow... x)
Python? My fault... But I'm not sorry! ;)
Enjoy!
Sensei you are brutal! Best Kata I've seen thus far! I'm down to 5 to 6 left to solve. Each one is its own special nightmare ;-) Enhancing the logic to capture additional twists sans breaking anything has been quite the challenge.
It works just as well with a 'for' loop or n a recursive function, but the while loop looked the cleanest to me.
This is brilliant! Will probably use this in the future.
Same here - I was staring at this for quite a while wondering how the heck it could be solved...
I forgot ot remove it before submitting - most likely from an earlier attempt to solve this. Fixed it - thanks!
why the bool?
I get a page not found when attempting this in C.
Getting - could not find language on clicking the Attempt button. I tried selecting each language and no go.
Yes that helps thanks!
Yes, because a noun on its own is not a Noun Phrase. It needs to be a noun AND and an artical to be replaced by a pronoun.
Does that help? Or are there sometimes fewer pronouns than Noun Phrases?
Under assumptions it states
"the number of pronouns provided will be equal to the number of Noun Phrases in the sentence"
But some of the test cases have fewer pronouns than nouns (sometimes none).
Loading more items...