It is giving correct output for every custom test, but giving wrong output. Can you give me some hint .
https://ide.codingblocks.com/s/71601
Not So Easy Math wrong answer
Hi
Approach for this question is :This question is based on inclusion exclusion principle (Set theory)
let a,b,c,d,e,f… represent set of prime numbers less than 20.
Now you have to find
a union b union c union d…
this can be found by inclusion exclusion principle.
In case you need explanation do post it.
Video reference https://www.youtube.com/watch?time_continue=122&v=tMRZ6gqFYdg 2
Hit like if you get it
Cheers!
Hi
it would be great if you would explain a little about your approach and are you using inclusion exclusion principle?
I got answer using inclusion exclusion. Initially I was implementing it wrong.
Thank You
If your doubt is resolved then pleas mark it as resolved in your online course’s ask doubt section