|
|
|
|
|
by lambdadmitry
1640 days ago
|
|
Note that that "location" property should be a method instead of property to signal that it does something potentially complex and slow. Making it a property practically guarantees that someone will use it in a loop without much second thought, and that's how you get N+1. |
|