Как мне увидеть на каком именно тесте моя функция даёт сбой? Я вижу только: -1 should equal 0! Чтобы исправить свою функцию мне нужно видеть тестовый пример с которым не справляется моя функция! Но я не могу этого добиться. Предварительные тесты моя функция прошла. Не прошла один специальный.
@zLuki 2 substractions and 2 divisions? what if the sequence is consistent at the start but not in the middle? What if it the sequence breaks at the end of the sequence? They won't be a valid AP/GP anymore. Thus, you have to loop through the entire list to check. 2 check is not enough
You can use
print()
to print any data you need to stdout.Как мне увидеть на каком именно тесте моя функция даёт сбой? Я вижу только: -1 should equal 0! Чтобы исправить свою функцию мне нужно видеть тестовый пример с которым не справляется моя функция! Но я не могу этого добиться. Предварительные тесты моя функция прошла. Не прошла один специальный.
@zLuki 2 substractions and 2 divisions? what if the sequence is consistent at the start but not in the middle? What if it the sequence breaks at the end of the sequence? They won't be a valid AP/GP anymore. Thus, you have to loop through the entire list to check. 2 check is not enough
LOL
Will do it.
sure
[0, 1, 0, 1, 0] --> 0 # none
Maybe -1?
Enforced 1 liner solutions will give this a 5, otherwise a 8 :)
Can you please make this a 6kyu one. Because I haven't seen any question as hard as this in 7kyu's.
I thought it was a 6kyu one. But the person approved it put it as 7kyu I guess. I cant do anything.
Too difficult to be a 7kyu.
No more issues, so we can approve?Looks good :)
Fixed
The tests are wrong again.
Are you just changing stuff at random hoping that this time it will be correct?
Done!!
Loading more items...