I implemented using hashing in complexity of O(m1*m2+n1*n2) and i dont know why i m getting tle at judge(12) and the link to solution is http://ideone.com/cUchRn
I implemented using hashing in complexity of O(m1*m2+n1*n2) and i dont know why i m getting tle at judge(12) and the link to solution is http://ideone.com/cUchRn