Help needed in understanding the approach. Problem CHELEC

problem link

AC solution

How does this solution work in 0.00 time ???
Can we even store 10^9 elements during runtime? Or maybe the actual test cases had lower constraints than mentioned in the question ?

1 Like

You mean execution time equal 0