11 Apr Monday 20:00 Python Practice 21.04.05.
Question: You are given an array A of Q integers and Q queries. In each query, you are given an integer i (1≤i≤N).Your task is to find the minimum index greater than i (1≤i≤N) such that:Sum of digits of Ai is greater than the sum of digits of AjAi < AjIf there is no answer, then print -1. Input formatThe first line contains two numbers N and Q.The...
 
									