0

what is the fastest way to find all the sub sequences of a given list in python?

for example

a=[1,2,2,3]

sub sequences of a are :-

[1],[2],[2],[3],[1,2],[1,2],[1,3],[2,3],[2,3],[2,2]

0 Answers0