Chapter 6: Problem 13
Write a function def saneflenents \((a, b)\) that checks whether two lists have the same clements in some order, with the same multiplicities. For example, $$ \begin{array}{llllllllll}1 & 4 & 9 & 16 & 9 & 7 & 4 & 9 & 11\end{array} $$ and \(\begin{array}{lllllllll}11 & 1 & 4 & 9 & 16 & 9 & 7 & 4 & 9\end{array}\) would be considered identical, but $$ \begin{array}{lllllllll} 1 & 4 & 9 & 16 & 9 & 7 & 4 & 9 & 11 \end{array} $$ and \(\begin{array}{lllllllll}11 & 11 & 7 & 9 & 16 & 4 & 1 & 4 & 9\end{array}\)
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.