Different approaches for finding the subsets of a set in Python 3

The first time I thought at this problem was when I worked on testing a component on a work-related project. Back then, I’ve realised that for properly testing the component, I should generate what seemed to be \(2^n\) distinct cases (n being the number of element types). \(2^n\)…odd coincidence or what? After some thought I […]

Send this to a friend