Which is better bitset<N> vis or bool vis[N]?

Will bitset<N> vis provide me optimized my speed or space in my code? or using it is actually a bad idea.

both i think

1 Like