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

Правка en1, от 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. Язык Кто Когда Δ Комментарий
en1 Английский Ahnaf.Shahriar.Asif 2018-11-09 12:48:18 406 Initial revision (published)