What does the order of N mean?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at Stanford University, Lives in Palo Alto. Currently working as a product manager for a tech company.
O(n) is Big O Notation and refers to the complexity of a given algorithm. n refers to the size of the input, in your case it's the number of items in your list. O(n) means that your algorithm will take on the order of n operations to insert an item.Dec 16, 2009
2023-06-19 12:09:00
评论(499)
Helpful(122)
Helpful
Helpful(2)

Olivia Walker
QuesHub.com delivers expert answers and knowledge to you.
O(n) is Big O Notation and refers to the complexity of a given algorithm. n refers to the size of the input, in your case it's the number of items in your list. O(n) means that your algorithm will take on the order of n operations to insert an item.Dec 16, 2009