You need to write a function is_even(p) that returns True for even permutations and False for odd permutations(in python)
Aprende de forma mais eficiente, gratuitamente:
Introdução ao Python
7,1M de estudantes
Introdução ao Java
4,7M de estudantes
Introdução ao C
1,5M alunos
Introdução ao HTML
7,5M alunos