class Solution:
    """
    @param S: The set of numbers.
    @return: A list of lists. See example.
    """
    def subsets(self, S):
        S.sort()
        return [[S[i] for i in xrange(len(S)) if (x >> i) & 1]
                         for x in xrange(0, 2 ** len(S))]

1bf49456d2f41fe5c148794270665d089ebfd9c2
<mask token>

class Solution:
    <mask token>
    <mask token>

class Solution:
    <mask token>

    def subsets(self, S):
        S.sort()
        return [[S[i] for i in xrange(len(S)) if x >> i & 1] for x in
            xrange(0, 2 ** len(S))]

class Solution:
    """
    @param S: The set of numbers.
    @return: A list of lists. See example.
    """

    def subsets(self, S):
        S.sort()
        return [[S[i] for i in xrange(len(S)) if x >> i & 1] for x in
            xrange(0, 2 ** len(S))]

class Solution:
    """
    @param S: The set of numbers.
    @return: A list of lists. See example.
    """
    def subsets(self, S):
        S.sort()
        return [[S[i] for i in xrange(len(S)) if (x >> i) & 1]
                         for x in xrange(0, 2 ** len(S))]
