• + 1 comment

    http://ideone.com/ukUMf1

    Floyd's takes less than 1 second on testcase "100000000 1 3 1".


    Really cool math though.