Ad
  • Custom User Avatar

    O(n) solution using Data.Sequence as a Queue. Also wanted to separate the xbonacci desired numbers call from the actually xbonacci series.
    I make an infinite series by getting the "value (sum)" of the window then shifting the WindowSum down by adding the val to the end and popping off the front.