Q1.Triangle Star Pattern Print the following pattern for the given N number of rows. Pattern for N = 4 * ** *** **** Note : There are no space... read more
Q2.Encode The String You are given a string ‘S’ of length ‘N’. The string can be encoded using the following rules: 1) If the ‘i-th’ character ... read more
Q3. Knapsack There is a potter who makes pottery wares. With his saving, he can purchase some pottery clay, say ‘K’ units to make pottery wares... read more