r/badcode•8 yr. agoTASagentSome garbage code I wrote earlier today. In fairness, it was just facilitate earlier testing and is already gone....c#Posted Apr 20, 2018, 4:15 AM UTC02ShareSave
It works, but at what cost :(
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)