On the largest eigenvalue of some bidegreed graphs