The Madelung rule predicts that the typical electronic structure of transition metal atoms can be written as [inert gas]ns2(n − 1)dm where the inner d orbital is predicted to be filled after the valence-shell s orbital.
A careful look at the electronic configuration of the elements reveals that there are certain exceptions shown by Pt, Au and Hg.