Ad
  • Custom User Avatar
    [[953, 579, 241, 809, 554, 782, 1, 756, 846]
    [91, 833, 225, 143, 469, 42, 140, 805, 848]
    [811, 256, 613, 444, 490, 974, 159, 196, 389]
    [362, 408, 480, 854, 52, 829, 777, 189, 791]
    [524, 623, 269, 527, 661, 912, 167, 76, 802]
      v
    >[2, 296, 308, 819, 597, 242, 26, 808, 476]
      ^
    [489, 537, 690, 630, 601, 275, 907, 953, 413]
    [222, 444, 162, 102, 762, 262, 808, 507, 728]
    [324, 946, 41, 540, 396, 205, 444, 562, 497]]
    

    Look again, and the index value for 2 is 27.

  • Default User Avatar

    Well, I had just created some print statements to track the words... I've since deleted that but you can easily do the same. Also: I did notice that your code fails on other types of test, so give it a thorough look while print/debugging. Best of luck!

  • Default User Avatar

    You have to check '(' and ')' but you can ignore those : {} []

  • Default User Avatar

    Hi junioryao, I have run your code and checked its output. It returned 1 (claiming Bob had won) on a random test wherein neither player could find any match word for the original game word. Tests of this type should return -1.

  • Custom User Avatar

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