A site for technical interview questions, brain teasers, puzzles, quizzles (whatever the heck those are) and other things that make you think!
Write code to generate all possible combinations of ‘r’ elements in a given array of size ‘n’?