only 3 test case pass .please tell me what may be the error.
K append problem
@Korou it is not mentioned in the problem statement that k will be less than n but your code is running only if (k<n), don’t assume anything that is not in the problem statement.