Enumeration of Combinations
Print all combinations which can be made by kk different elements from 0,1,...,n−10,1,...,n−1. Note that we represent 0,1,...n−10,1,...n−1 as 00...0001, 00...0010, 00...0100, ..., 10...0000 in binary respectively and the integer representation of a combination is calculated by bitwise OR of the selected elements.