#rip
1 messages · Page 1 of 1 (latest)
6sum
they unironically ask this, last year i got asked how do to 4sum in n^2 time and 5sum in n^3
How do u solve those
still not super sure, but i think you create a map of every possible pair of numbers which takes n^2 time, then you do a O(n) iteration through it to find all the possible combinations
stats?
That implementation is aids