I dont know why this code is not running . it is giving output for all cases but it is not submitting


code is giving output but it not submittig

hey @Aug19APPPP0002, what error it is showing.

Sir it is not accepting my code

hey @Aug19APPPP0002, due to very high constraints your code is giving time limit error. Use DP approach to solve this.