About pigeon hole principle

In which kind of problems should we think of pigeon hole principle?

@Senjuti256 hey basically it depends on question to question but where hashing is involved and qstn is based on counting subarrays etc then you can use that.