new test case, verified some submitted solution is wrong


  • 0
    Y

    For the test case:
    {{1, 8, 1}, {1, 9, 1}, {1, 1000, 1},{2, 8, 10}, {1, 400, 950}, {3, 9, 20}, {4, 10, 30}, {5, 11, 40}, {6, 12, 50}, {7, 13, 60}, {20, 80, 10}, {30, 90, 20}, {40, 100, 30}, {50, 110, 40}, {60, 120, 50}, {70, 130, 60}, {200, 800, 100}, {300, 900, 100}, {400, 1000, 1000}, {500, 1100, 10}, {600, 1200, 10}, {700, 1300, 10}}

    There are 22 transactions, but some solutions return 28 or other numbers.


  • 0
    Y

    @yuhaowang001
    One more test case I posted in another post:
    {{1, 8, 1}, {1, 9, 1}, {2, 8, 10}, {3, 9, 20}, {4, 10, 30}, {5, 11, 40}, {6, 12, 50}, {7, 13, 60}, {20, 80, 10}, {30, 90, 20}, {40, 100, 30}, {50, 110, 40}, {60, 120, 50}, {70, 130, 60}}

    Answer: 14


  • 0
    Y

    @yuhaowang001
    Another one:
    {{1, 8, 1}, {1, 13, 21}, {2, 8, 10}, {3, 9, 20}, {4, 10, 61}, {5, 11, 61}, {6, 12, 59}, {7, 13, 60}}

    Answer: 8


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.