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.
The C++ update to C++ 20 is one very unlucky thing. It's been worked on and off a couple of times already, there's been a lot of effort put into it and a lot of preparation has been done, but currently it's on hold again :(
I am also waiting for it, but there's no ETA other than "not now".
OUPS!!!!!!!!! Just to stay tuned... Tell me that the C++ translation of one of those is somewhere... waiting ???
BTW (nothing related to ... but): saw a post in the codewars feed saying "C++ last versions coming soon" => Do you kno what they do mean by soon ?
There is even more.
You are 100% right. My bad, I don't code in PYTHON at all so didn't see that.
Should remove mine :-(
Kinda similar to this kata: https://www.codewars.com/kata/5a02037ac374cbab41000089
This has been done now. Thanks again
From the description:
Improved the tests :3
Potential copyright infringement: https://leetcode.com/problems/subarray-sum-equals-k/.
Its items don't contradict this definition, so yes, it's vacuous truth.
Can an empty array have consecutive elements from the original array? But, from the first example, there is a subarray with a single element, can that be called consecutive?
I don't see anything about excluding empty subarrays in the description.
I think that naming the thing represented here a "number system" (instead of "number base system") would be okay. Number systems can be irregular in many ways, for example roman numerals, or factoradic system. Not many of them end up in ambiguous representations, true. But I think that if you squint your eyes hard enough, the "numeric system", without "base", would still fit.
Fair enough. I'll implement this change ASAP. Thanks.
I would suggest to consider making the return value a string instead of a number, to make a stronger distinction between a value and a representation. For example, the number seven in binary is written as
111
, but its numeric value (i.e. what numeric types are meant to represent) is 7 and not 111. I think that using strings to model a representation would carry the idea better, and additionally would prevent from overflow in languages which have no native support for big integers.Loading more items...