Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
If
numbers
contains duplicate values,.index()
will always return the index of the first occurance, messing up your results. There are easier ways to keep track of indexes with built-ins in Python.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Approved
OP left the building
Not a kata suggestion. OP solved it, closing
В условии заранее оговаривается, что n > 2
Great Kata))
This comment is hidden because it contains spoiler information about the solution
Assert.AreEqual(49, Solver.EvenTimesLast(new[] { 7 }));
Shouldn't this return 0, as there are no even numbers in the array?
Approved.
This comment is hidden because it contains spoiler information about the solution
approved
COBOL translation (author inactive).
Loading more items...