Skip to content

Instantly share code, notes, and snippets.

View vhxs's full-sized avatar
💻
coding or mathing

Vikram Saraph vhxs

💻
coding or mathing
View GitHub Profile
@vhxs
vhxs / permutations.py
Created December 9, 2024 03:43
"anti-bingo"
import numpy as np
from itertools import permutations
def count_permutation_matrices(n):
count = 0
row_permutations = permutations(range(n))
permutation_matrices = []
for perm in row_permutations: