Ad
  • Custom User Avatar

    closing as there's completions in C++

  • Default User Avatar

    Ive just completed the task in C++ and nothing seems broken at least to me.

  • Default User Avatar

    Either I'm experiencing an incredible brain failure or merely trying to access a member of the input array causes a SIGSEGV signal.
    I'm guessing that's what RafaARV means.

    static TreeNode* arrayToTree(std::vector<int> arr) 
    {
        int value = arr[0];
        
        return NULL;
    }
    
    Process exited prematurely with a SIGSEGV signal.
    

    EDIT: Even stranger, at() seems to work just fine, i.e.:

    int value = arr.at(0);
    

    EDIT 2: Just realised the first test is an empty vector, hence arr[0] freaking out. doh.

  • Default User Avatar

    Fully agree.
    I have done some annoying trial and error to find the correct rules.
    This should be explained in detail in the description, otherwise it is impossible
    to solve the Kata with the first try.

    There should further be a comment that strings between angle brackets <...> are not shown
    on stdout/stderr (with C++). That also bothered me at the beginning for some time.

  • Default User Avatar

    What is broken exactly? can you post the errors and mark as spoiler so people can help?
    There are 30+ successful submissions in C++