Let G be a finite solvable group and ¡ a set of primes such that the degree of each irreducible character of G is either a ¡-number or a ¡0-number. We show that such groups have a very restricted structure, for example, their nilpotent length is at most 4. We also prove that Huppert's ^{ÿ Conjecture is valid for these groups.