Inclusion Exclusion Principle

I have gone through the video but I’m unable to understand the logic. please help me explain the logic by pseudocode.

problem name : Not so Easy Math

hello @aman.jain.kiet2714

we are just applying inclusion exclusion formula here.

u may have studied this in ur class xi sets chapter.

in case u dont remeber pls read it from here -> link

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.