The sufficient condition for the existence of Hamiltonian cycles and paths with prescribed set of edges in hypercubes or their dense sets is stated