Conclusion | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4921688-programming-in-dart-fundamentals/lessons/34

Quick correction here: the sentence “Try in insert at the beginning or end of lists wherever possible to keep things running smoothly.” should have read “Try in insert at the end of lists wherever possible to keep things running smoothly.”

Inserting at the beginning of a list is an O(n) operation, whereas inserting at the end is amortized O(1).

@macsimus Thank you for sharing this - much appreciated!