Calculate the solvability
Calculate the number of inversions. An inversion is when a tile precedes another tile with a lower number on it.
Calculate the solvability
Calculate the number of inversions. An inversion is when a tile precedes another tile with a lower number on it.