The magnetic flux penetration dynamics of type-II superconductors in the flux flow regime is studied by analytically solving the nonlinear diffusion equation for the magnetic flux induction, assuming that an applied field parallel to the surface of the sample and using a power-law dependence of the differential resistivity on the magnetic field induction. An exact solution of nonlinear diffusion equation for the magnetic induction is obtained using a well known self-similar technique.