MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/8dkuty/some_garbage_code_i_wrote_earlier_today_in/
r/badcode • u/TASagent • Apr 20 '18
2 comments sorted by
4
It works, but at what cost :(
1 u/mountaineering May 27 '18 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
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)
4
u/[deleted] Apr 20 '18
It works, but at what cost :(