In this paper, we consider the minimal doubly resolving set problem in Hamming graph, hypercube and folded hypercube. We determine that the minimum cardinality of a doubly resolving set of a Hamming graph H n,q is (2 + o(1))n/ log q n. We prove that the minimal doubly resolving set problem in hypercube is equivalent to the coin weighing problem. Using the connection between these two problems, we answer an open question on the minimal doubly resolving set problem in hypercube. Using the Lindström's method for the coin weighing problem, we give an algorithm to find upper bounds of the minimal doubly resolving set in hypercube. We disprove a conjecture on the metric dimension problem in folded hypercube. Some asymptotic results in folded hypercube are given. We also prove that the minimal doubly resolving set problem is NP-hard even restrict on split graphs, bipartite graphs and co-bipartite graphs.