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.
This comment is hidden because it contains spoiler information about the solution
yep, my first ones were already hidden.
current one would not work for the 3kyu kata anyway
ok, I'll post another.
it seems that kata needs a JS translation as well ;-)
couldn't find a chat/thread there with that discussion.
but you could ping me ( @twilight_sun ) if that makes sense. I have no certain opinion at the moment
This comment is hidden because it contains spoiler information about the solution
done (submitted the solution). maybe not the clearest code, but should be faster
This comment is hidden because it contains spoiler information about the solution
oh, excuse me =)
It depends on what ranges are ok for your solution, as mine is a result of looking at numbers without understanding of a problem per se
now it works, thanks!
btw, input range looks easy, it could work for much bigger numbers with a little modification ;)
This comment is hidden because it contains spoiler information about the solution
It seems there is a typo in "Simple tests" (in "Basic tests"):
should be
This comment is hidden because it contains spoiler information about the solution
I've also thought there could be at least 2 kata:
P.S. as this is quite a practical task (but not in SQL) I know there exists several approaches to calculating a gross margin; not only different ways of dealing with sales of skus that are not in stock but also a different algos, not only FIFO.
Notes says:
It is not possible for more units of a certain product to be sold than purchased at any given moment in time because the FIFO Gross Margin calculation assumes that sales are matched to prior purchases.
but in example tests I see
it looks like a contradiction to me. So from the description the result for this sku is unclear (could be 20, 30 or even 40)
purchase / sales - naming is inconsistent: singular/plural
I'd suggest 'purchases'
Loading more items...