std::bitset vs manual bitmask ? which is better ?

Revision en1, by Ahnaf.Shahriar.Asif, 2018-11-09 12:48:18

Recently, I learned Bitmask DP and used only a variable to see if some block was visited or not. But now I want to do it using std::bitset. Will it be more or less efficient than the first one ? If yes or no, why ? I'm just confused. I think bitset should be fine. and I want to use it because it is easy to use.What's your opinion ? thanks in advance.


  Rev. Lang. By When Δ Comment
en1 English Ahnaf.Shahriar.Asif 2018-11-09 12:48:18 406 Initial revision (published)