0
Missing Numbers
Code coach problem solution n=int((input())) l=[] m=" " for i in range(n): g=int(input()) l.append(g) s=l[0] g=l[n-1] for i in range(s,g,1): if(i in l): continue else: m=m+str(i)+" " print(m)
4 Antworten
+ 1
Post the question please
+ 1
n = int(input())
q = []
for i in range(n):
q.append(int(input()))
print (" ".join([str(i) for i in range(min(q),max(q)) if i not in q ]))
0
you've got one point because you shared your code attempt, but you must describe both the code coach requirement and the problem you're facing, as well as tagging the question with the language used, even it's obvious that's it's python ;P
(you can edit your question: avoid posting a duplicated thread, but once the question was updated, post in the thread to make us aware of edition)
0
Sure