Forum: Computer Science and Software Design Aug 23rd, 2007 |
| Replies: 57 Views: 68,392 Re: Time complexity of algorithm what if
MyTable1.First;
for i := 1 to MyTable.RecordCount do
begin
...
end;
is O(n) or O(n2) because MyTable.RecordCount is also counts |