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.
It was intended as a pun, but my smiley didn't (fully) go through ;-)
Cheers
Thanks for that (and the link)— I'm a newbie at posting kata of my own so I don't quite know the rules/culture.
I do like how this one is set up, but it is really too similar to the other one. It's a shame for the effort that went in to it. If you have ideas for more katas, I encourage you to pop into the Discord server, and ask there if your idea is a duplicate. That is usually a more reliable way of checking if its a new idea or not.
Thanks for the feedback, I simplified everything to
champagne
in the description so people don't get confused whether or notwine
is different fromchampagne
. I've keptbottle
in the function name because that is an accurate label, the function is called as each bottle of champagne is doled out one-by-one for poison-testing.This is the same problem, but this kata provides the logical strategy behind discovering the wine bottle. Mine requires you to solve the whole problem, from coming up with the strategy of using minimal rats to suss out the poisoned bottle, all the way to identifying said bottle at the end.
Apologies if that is too similar, but since this version is several steps longer I thought it was justified (and I didn't know about this one beforehand anyway).
Thanks for that, updated the initial provided code to be consistent/correct.
Task not clear: title mentions
wine
, description talks aboutchampagne
, but the function name is about abottle
;-and this one
In the description and initial solution,
guess_bottle
only has one argument, however the tests expect it to take two.Duplicate
if youre in python
maybe you could make a list of n elements and one could be different--that one would be poisoned(e.g.['a','a','a'....'b']etc.)?
Hey all! Trying to design my first kata, but I think it might not be possible?...
It's a riddle kata... you get
n
items, and one of these items is poisoned. It's your job to find the poisoned item,n_?
out ofn
total. (In addition to severe limitations on how many trials you can do to find it, that's the tricky part.)Now, obviously, the
n_?
item needs to be marked in some way so that when you're experimenting, it can interact with your data objects to give you clues about its identity.But how can I give the kata-goers this variable
n_?
in a secret/hidden fashion without them just saying, well let me just print out the given function parametern_?
and return that, instead of truly 'solving it'?Are kata riddles always this hard/impossible to implement when there needs to be some hidden clue you have access to, but not direct access to?...
Take some more time and implement a relatively efficient algorithm.
This comment is hidden because it contains spoiler information about the solution
Loading more items...