Hello , can someone please help me out in this problem ?
I am getting runtime error(sigsegv) while submitting. I tried changing array sizes but not working.
Thank you
Hello , can someone please help me out in this problem ?
I am getting runtime error(sigsegv) while submitting. I tried changing array sizes but not working.
Thank you
N = int(input())
arr = [int(i) for i in input().split()]
for _ in range(int(input())):
min_,max_ = map(int , input().split())
print(len(set(arr[min_ - 1:max_])))
i think this should work
Hey , i couldn’t understand this as i don’t know python. Can you please just write what part should i modify ?