CS21003 Algorithms I
 CS29003 Algorithms Laboratory
Autumn 2012, L-T-P: 3-1-0 
L-T-P: 0-0-3 

Programming Assignment 1

You are given two postive integers n and k. Your task is to fill an array of size n such that Write a recursive function to do the following:

Sample output

n = 4
k = 3
The possibilities are:
1 1 2 3
1 2 2 3
1 2 3 3
Total number of possibilities = 3

Back | Home