I'm trying to get this code to run multiple test cases, it sometimes return duplicate outputs. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

I'm trying to get this code to run multiple test cases, it sometimes return duplicate outputs.

I.e for 3 test cases (n = 3) and list(c) =10000001, it returns YES twice Help resolve please. https://code.sololearn.com/c8k6SmFrVi4P/?ref=app

14th Apr 2020, 1:49 PM
Justus
Justus - avatar
7 Respostas
+ 2
~ swim ~ Sure in times of corona... This are the tables at Mc.Donalds and the police checks if all guests keep the distance. šŸ’ƒšŸ’ƒ
14th Apr 2020, 3:21 PM
Oma Falk
Oma Falk - avatar
+ 1
~ swim ~ if all is said then all is said Justus that makes a nice coding challenge. Wont u post it? 2D case would be interesting too
14th Apr 2020, 2:46 PM
Oma Falk
Oma Falk - avatar
14th Apr 2020, 2:13 PM
Justus
Justus - avatar
0
~ swim ~ thanks I removed the else statement
14th Apr 2020, 3:17 PM
Justus
Justus - avatar
0
Oma Falk tried to, but only saw for Swift and c
14th Apr 2020, 3:17 PM
Justus
Justus - avatar
0
Justus simply do it on your timeline
14th Apr 2020, 3:18 PM
Oma Falk
Oma Falk - avatar
0
Working on it
14th Apr 2020, 3:39 PM
Justus
Justus - avatar