Help me in solving KNGATK problem

My issue

My code

n = int(input("Total test case: "))
for i in range(n):
    days = int(input("Total days: "))
    temperature = [int(i) for i in input().strip().split()]
print(days)

Problem Link: CodeChef: Practical coding for everyone

You can sort the array and return the second smallest element… Or you can find the smallest elemnt in the array and find the element with the least difference between the smallest element other than the element

bro i am also doing cp with java …it would be really helpful if u could share with me what and all resources you do…i am novice …whether u follow coding sheet /channel or whichever platforms u practice and how to improve oneself on codechef.it would be really helpful if u could guide me…Thanks in advance

At the beginning you dont need anyones guidance. Until now i havent watched any tutorials or anything. You just need to solve atleast one problem a day. Dont worry about time or space complexity in the beginning. Once you submit your code, dont forget to checkout other peoples code. If you cant solve any problem dont stick on that for longer time as you would solve in seconds when you come back at a later stage when you are improved. Next you MUST identify your level of problems. Its the most crucial part. You need to solve problems in your correct difficulty zone, not more not less. You can do that by checking the level of problems which you can solve in 30-40 minutes. Let go of your ego in doing this. First dont try to jump into trees/graphs/dp. Master arrays, strings, bit manipulation and recursion problems. You can use my template for fast input and output when you know how it basically works. Again, a question a day is MUST
All the best…

Thank you so much bro…Just one last favor from u …do you have any contacts …so that i can reach you for guidance/queries in future.,where we can connect…will really help…I wont trouble you and ur time…but i would be really grateful

you can connect to me on linkedIn at Sagar Gupta - Chittoor, Andhra Pradesh, India | Professional Profile | LinkedIn