← ALL NOTES
Array

904. Fruit Into Baskets

You collect fruit from a row of trees into two baskets, each holding only one fruit type, taking consecutive trees until you'd need a third type. Maximise trees collected. Stripped of the story, this…

Loading…