Solids and Semiconductors

How depletion layer or potential barrier is formed in the PN junction diode

In a PN junction diode holes are the majority carriers on P side whereas electrons are the majority carriers on n-side. The process of diffusion