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.