How to solve this problem?

Revision en1, by live_like_simple, 2021-06-14 20:12:48

you are given a number of easy, medium, and hard questions.also given the totalnumber of qns to be framed. following condition to be withheld while solving: medium qns always greater than easy and hard no two question-level should be consecutive. atleast one qns of every level must be there.

input like N,E,M,H 4 2 3 3

output : total combination would be 4 e m h m , h m e m , m e m h, m h m e

i don't know to approach this qns. thanks in advance!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English live_like_simple 2021-06-14 20:12:48 491 Initial revision (published)