Generate all possible substructures of a given structure

generate_subsequences(arr)[source]

Given an array of integers, arr, return all possible subsequences of the array.

Time complexity: \(O(2^n)\)

Return type:

List[List[int]]