r/badcode•
TASagent

Some garbage code I wrote earlier today. In fairness, it was just facilitate earlier testing and is already gone....

c#
Some garbage code I wrote earlier today. In fairness, it was just facilitate earlier testing and is already gone....

Posted Apr 20, 2018, 4:15 AM UTC

02
strngsvlmstng96•

It works, but at what cost :(

2
mountaineering•

O(2n)?

1n for posing each element of IAdaptive into an array and another 1n for iterating over them all?

(I don't really know if .toArray() has to iterate over each item)

1