• Custom User Avatar

    The statement is confusing, the situations that must be considered are not exemplified correctly. It contributes little considering the time it took me to reach the correct solution

  • Custom User Avatar

    This issue has been fixed by author, closing

  • Custom User Avatar

    The wind will pass through each card house from left to right

    Wind doesn't go through buildings

    Please make up your mind.

  • Custom User Avatar

    Added.Thanks for feedback!

  • Custom User Avatar

    Specs about behavior of wind in case its strength is equal to that of next house are missing from description. We need to scrape comment section to find out.

  • Custom User Avatar

    I can't find that statement anywhere in the specification of the kata.

  • Custom User Avatar

    why isn't this logged as issue? ah wait, it is discussed in other comments

  • Custom User Avatar

    probably same issue:

    min_wind_strength([13, 481, 430, 205, 154, 719, 138, 773, 53, 331, 951])
    
    expected: 774
    my sol: 719 
    
  • Custom User Avatar

    Looks like they've been removed

  • Custom User Avatar

    Looks like there have been an error in my code. Thanks for feedback! Fixed

  • Custom User Avatar

    Tag binary search is not needed anymore as reference solution has since changed to a different algorithm.

    Array size is at most 50. Why is there a optimization tag?

  • Custom User Avatar

    Reference solution fails when the tallest building has more than one occurrence:

    Testing for min_wind_strength([877, 517, 66, 828, 484, 5, 83, 763, 570, 233, 202, 991, 855, 991, 848, 829])
    992 should equal 993
    

    The highest building is 991, so 992 will topple every building. This is a trivial upper bound.

  • Custom User Avatar

    Wind doesn't go through buildings. When a house breaks, it “stays in place” and therefore it takes + wind to knock it down so the wind can pass through.

  • Custom User Avatar

    Could you explain this test?

    test.assert_equals(min_wind_strength([9, 8, 7, 6, 5]), 10)
    

    Why isn't a wind strength of 9 sufficient?

    A wind with strength of 9 is enough to collapse the first house. It doesn't matter that the first house does not fall onto the second house because the wind is already stronger than all the remaining houses.

  • Custom User Avatar

    Fixed

  • Loading more items...