Beta

Catch Mad Mars Bar Max!

Description
Loading description...
Arrays
Fundamentals
Puzzles
  • Please sign in or sign up to leave a comment.
  • Voile Avatar

    Mad Max has attempted to confuse you by adding extra numbers into elements of the array that are divisible by 2 exactly.

    It's not elements of the array that are divisible by 2, it's the index of the elements.

    Also it's 0-indexed.

  • pre Avatar

    Fun kata, thanks!

    Please do consider rewording this note in the description: "Mad Max has attempted to confuse you by adding extra numbers into elements of the array that are divisible by 2 exactly."

    I understood this to mean numbers/elements in the array that were even, when it intended to mean even indexed elements (not the elements themselves). Maybe reword to: "Mad Max has attempted to confuse you by adding extra numbers into elements of the array, those whose index are divisible by 2 exactly."

  • JohanWiltink Avatar
    500: Internal Server Error
    Description: TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
    

    on Submit.

  • St3f4n Avatar

    Uhm I can't submit anything, keep getting 500: Internal Server Error

    • charlie301 Avatar

      Thanks for flagging st3f4n, sorry for the late response – if you get a chance would you mind forwarding me your attempt code to help me identify what could be causing the issue. Thanks

    • St3f4n Avatar

      Actually, I've deleted my code in order to attempt to submit an empty function just to see if it will accept anything, but the error is there no matter what is submitted...

  • matt c Avatar

    Needs random test cases :)