i'm try to solve this graph problem (double profiles) and it requires to use hashes in order to solve the problem.
first of all, i didn't solve the problem and and if anyone could give me help, i appreciate that.
secondly, when should i know that i need to use hashes to solve a graph problem (what is the properties of the graph problems that need hashes)