QuesHub > 您的 > 算法 > 顺序 > ASK DETAIL

What does the order of N mean?

Lucas Turner | 2023-06-17 12:09:00 | page views:1643
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Olivia Foster

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

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
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4