O( M+N + SIGMA( 2^3+2^4+...+2^n>N) + SIGMA( 2^3+...+2^m >M ) + MIN(N,M) ) memory for 1st hash memory for 2nd hash memory for 1 array* ## (*assuming you chose the smallest array to use with the 2hash/1 list method)