Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Thanks a lot man , it worked like a charm . I only want ot ask now how can we change the default List of A , with a list that we're going to give to the program on every iteration. Thanks a lot ! Commented Feb 15, 2019 at 14:48
  • Also i'd like to contain the whole code under a maxSequence() function . Commented Feb 15, 2019 at 15:18