News for hackers. Stuff that matters.
Re:I cheated on my Microsoft interview (2019) by zeroonetwothree on Sunday June 05, 2022 @10:39AM (#31631381)
Every solution is at least O(n).
Re:I cheated on my Microsoft interview (2019) by TheRealNGenius on Sunday June 05, 2022 @04:43PM (#31634639)
Wrong, calculating n(n-1)/2 is O(1)
Re:I cheated on my Microsoft interview (2019) by gberger on Sunday June 05, 2022 @05:55PM (#31635193)
Finding the length of the array is O(n), though.
Re:I cheated on my Microsoft interview (2019) by cobalt on Monday June 06, 2022 @12:15AM (#31637203)
depends on how its referenced I suppose