Ad
  • Default User Avatar

    "Your job is to count the 'rings' in each letter and divide the total number by 2. Round the answer down."

    (int)(7 / 2) = 3 -> silver

    4 / 2 = 2 -> bronze

    in c

  • Default User Avatar

    QqeRoOpPaAdDgbB - "ring" characters

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This random test for Rust is wrong (should be gold because of R,o,P,R,P,q,O):

    assertion failed: `(left == right)`
      left: `"Gold!"`,
     right: `"Silver!"`: should work for random input "lfJULRrzZoPREzPMUqO"
    

    Additionally, this basic test is wrong (should be gold because of d,o,P,o):

    assert_eq!(olympic_ring("wHjMudLwtoPGocnJ"), "Bronze!");