I too used similar concept, used BIT to solve this.
The same reason I was thinking how can so many people have AC in this problem, I solved it using BIT
1 Like
I too used similar concept, used BIT to solve this.
The same reason I was thinking how can so many people have AC in this problem, I solved it using BIT