Ad
  • Custom User Avatar

    Return null/nil/None/... if the input is an even number or negative, as it is not possible to print a diamond of even or negative size.

    Challenge accepted!
    (even-sized diamonds are totally possible)

  • Custom User Avatar

    The tests don't check for multi-char glyphs. This means that naive implementations (most, if not all submitted, including mine) would corrupt the strings with multi-char glyphs in them by reversing order of chars in them. Either add test cases for those or add the assumption that input strings are ASCII in instructions.

  • Custom User Avatar

    Do we need to reverse graphemes in the words or just the chars are fine?

    Grapheme-based reversing would need an external crate to do properly in Rust. Is there a way to plug in dependencies here?