4 kyu
Karnaugh's detonating timer (a k-map primer)
385 of 398ssineriz
Loading description...
Algorithms
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
HTML in failure messages is broken.
hi,
inputs and outputs aren't described. it's impossible to actually know what the user is supposed to do just byreading the description.
I love kmaps
This comment has been hidden.
It's kind of annoying that the return value has to be a 1 or a 0, instead of being any logical value (0 false, nonzero true - like say for instance,
~0
which is -1).edit: nevermind, I guess the workaround is to use the logical not
!
instead of the bitwise not~
.Thanks for this Kata, I don't remember seeing Karnaugh Maps before, so I learnt something new and useful! :)
One minor suggestion for the language: "You have just finished to assemble the time-bomb" should probably read: "You have just finished assembling the time-bomb"
I don't mind about the illegal caracters, but it prevents commenting... Also, I don't quite get what we want and the first segment1 given is somewhat confusing me... The way I understand it it should be always true, since it will always be displayed for 'A', 'B', 'C'...'F'. What is it that I don't get ?
Hi nha, well, I believe I'm too late to apply a regex to the function body and strip out comments. I think it isn't worth the risk of an accidental solution invalidation. You still can place your comments outside the functions body :). As for the segment1 given solution, you are right. I've corrected the preloaded solution giving the more accurate and meaningful segment7 solution. Thank you for the hints.
Hey well that didn't prevent me from sloving it :) And I also found out later about the comments outside the functions so all is well. Thank you 1
Wait... what?
Code Golf: My best solution is 43 material used. Post here if you can beat it!
This was great. The extra credit part at the end is lots of fun.
Thank you. I think it would be nice (dunno if also naive) to be allowed to distribute some +/-2 or 3 honor/rank points to the trainee according to some commonly accepted kpi (speed, shortness, sensei's challenge) other than upvotes.
It is on JHoffner's TODO list.
Yeah its on there. Its... a long list.... sigh.
It is much clearer to me now that I have completed it. I think that the imaginative story hides the actual specification, unfortunately.
I would say tell the story, by all means, but then you need to specify what is wanted from the code much more clearly.
Clearly, you are a non-native English speaker, so please read these comments in the spirit that they are given. I applaud you for contributing, I certainly couldn't write Kata on a French version of this site.
I think I know what to do, since I understand Karnaugh maps, but I can't make sense of the description and the example test fixture doesn't help, unfortunately.
The error messages are also not that helpful.
I have no idea what that means,since I'm returning 0 and 1 for each one so those characters are being cooked up from somewhere by the test fixture.
I think a little clarification would help (because there is a lot of story hiding it), but the issue is that you cannot use most characters except for the bitwise operators or the
return
keyword. The unclear thing here is that you can returntrue
orfalse
, you don't have to return1
or0
. That tripped me up at first, too.I reformulated the requisites and tried to corrected some awkwardness. I hoped my non 'englishness' wouldn't be so perceivable, sigh! My goal is to make the useful (but boring, admit it!) Karnaugh maps a bit more funny, as I believe they are a nice technique to reduce if-then-else nesting (or cyclomatic complexity, if you prefer). Thank you for your remarks and don't refrain from making any other.
That is so much clearer now.
The error message about 'bad' characters could say that the Imperial Stormtroopers have detected illegal activity :-)
Thanks for the suggestion! Added it with a slight change to keep instructions clear. I'm not the droid you’re looking for … I can go about my business … Let me move along.
Your Jedi mind tricks won't work on me :-)