Ad
  • Default User Avatar

    same with me, thanks to your comment i was able to solve this kata.

  • Custom User Avatar

    Apologies, I only looked at this kata again today. I didn't receive a notification of your comment as it wasn't labeled as Issue.

    I'm not sure I follow though, can you expand? I'm trying to understand where the expectation of an i32 comes from.

    The solution setup currently takes a u8 for the length parameter and returns u64, so I expected the tests to infer that type and I didn't get any of the above warnings for my own solution either. I'm not sure why yours is returning i32.

    fn count_patterns(from: char, length: u8) -> u64 {}