Ad
  • Custom User Avatar

    It's too late to change the kata design, it's been solved many times. (Also it teaches new c0ncept about arguments of functions, so why not?!)

  • Custom User Avatar

    Where would suggestions for future katas in the series go, if they don't go in the comments?

  • Custom User Avatar

    each third character came only after first two.
    each second character came only after first one.

    it'a like dependency 🤗

  • Custom User Avatar

    Suggestions are related only to the task they're left under. They're not for suggesting what should be included in some arbitrary future katas.

  • Custom User Avatar

    If you mean not related to an Assembler Interpreter based kata I beg to disagree.
    Sorry, didn't expect to ruffle any feathers. It was just a suggestion to make an even harder kata.
    Sorry if I didn't phrase the idea conveniently.

  • Custom User Avatar

    Not related to this kata.

  • Custom User Avatar

    From the description :

    • there is a secret word
    • you are given a list of strings which are three chars of the word in the order they are in the word
    • those strings are not necessarily consecutive in the secret word
    • determine the word

    If

    questionNotIssue

    was the secrete word then you could be given strings like

    qti
    Niu
    que

    etc. to solve it.

  • Custom User Avatar

    Cannot understand the explanation of what the problem is or what data do we actually receive to decode the string...
    What are the contraints? What is the universe of possible triplet values?

  • Custom User Avatar

    C++: Wouldn't it be more educational for newer programmers to use a vector or even an array rather than individual arguments???

  • Custom User Avatar

    Excellent. Rather nasty parsing multiple spaces and the msg format itself.

    Maybe a part III could be done adding, for example:

    • DJNZ
    • Register sizes (say 16 bit) and enable an overflow flag which could add, say JO and JNO
    • Enable relative jumps (not only to labels
    • Add Push and Pop (push with values and/or regs)

    Really enjoyed it

  • Custom User Avatar
  • Custom User Avatar

    Where can I find the meaning of the "Exit Code"? I've come across code 139 a few times with all test showing green (but solution is not accepted). Does it mean out of memory, segfault, some exception?

    I would also suggest a search facility for the forum (if it's already implemented I couldn't find it). It would probably make it easier to find already answered questions.

  • Custom User Avatar

    My C++ solution is failing with the following status (it passes basic sample tests and is indicating "General Tests" in green as well:

    Time: 2038 ms Passed: 1 Failed: 0 Exit Code: 139

    and an error which reads:

    test: ../../libcxx/include/string:1164:
    void std::__1::__basic_string_common::__throw_length_error()
    const: Assertion `!"basic_string length_error"' failed.

    It would appear that either I'm trying to use negative length strings (already checked there's no chance) or that the maximum C++ string size has been exceeded.

    Can someone enlighten me on the possible causes of the error?

    I'd also appreciate if someone could point me to where I can find a reference to what Exit Code: 139 means.