Ad
  • Default User Avatar

    Nice, but no need extra list and l variable

  • Default User Avatar

    Input: 7 9 15

    Output:
    7, 63, 567, 5103, 45927, 413343, 3720087, 33480783, 301327047, 2711943423, 24407490807, 219667417263, 1977006755367, 17793060798303, 160137547184727

    Stack trace:
    expected:<...3480783, 301327047, [-1583023873, -1362312969, 624085167, 1321799207, -988709025, -308446633]> but was:<...3480783, 301327047, [2711943423, 24407490807, 219667417263, 1977006755367, 17793060798303, 160137547184727]>

    Negative numbers here means Integer overflow