Open olimasters opened 6 years ago
This should be fixed by storing 'unstableCells' as a class field. Implementation can be done through an array(or std::vector) of capacity equal to an upper bound on the number of possible unstable cells. Assigning George.
This is probably due to two factors:
isStable
method is very inefficient since it loops over the entire magnet.The latter of the above two factors could be desirable in some cases, such as if anyone cares about the stats side of things. The former is never good.