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.
Does someone knows why I can't use continuation markers ("\") to split the strings for my tests?
Probably should have named it RaceState instead of ChampionState.
I branched eurydice5717 and he in turn made two branches with some nice solutions.
Ah, I get it. So, its a "value" type that when copied, copies a boxed reference. Nice. BTW... on my prior question, how do you know that the execution of none_of is sequential? Should we not pass
std::execution:seq
?"Can you spot why we should use 'std::ref(par)' and not just 'par' ?"
No, I am pretty new to modern C++. I am confused by the reference material on the std::ref and the reference wrapper, and why it is needed
(I edited above to remove my understanding of std::ref, that was wrong no matter how I tried to make it work)
Do we know the execution policy is seq? I find it very hard to determine from the reference material
')(' should fail
Great answer. I have a pet peeve about nested ternary, but this is a nice one
As stated it can be parsed as a literal slash and n character, but it was a mistranslation of the original test code. In the other languages it was a newline
This code fails if you add a simple inversion test (')(');
I think your previous solution was more efficient, this one keesp repeatedly searching the lowerbound, the prior compared as interleaving
This is the way, I would only change a few minor things
But it is good for a laugh, plus taught me __builtin_popcount
@dust55 The const to function hack does not work on all platforms
Pascal translation has some serious issues with the tests. Newline is not passed as \n as presented here, but rather #10 for instance
should read
As it stands all solutions would have to parse the string as if a slash and letter n is the separator
Loading more items...