#rip

1 messages · Page 1 of 1 (latest)

teal peak
rotund crescent
#

6sum

wary drum
# rotund crescent 6sum

they unironically ask this, last year i got asked how do to 4sum in n^2 time and 5sum in n^3

wary drum
#

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

tardy gorge
#

stats?

river topaz
#

Was this after the 90 min interview

#

Or the 4 hour one

teal peak
#

That implementation is aids