rust: palindrome-products: instructions don't match function signature
Specifically:
If the largest or smallest palindrome has more than one pair of factors within the range, then return all the pairs.
But the signature of the relevant function is
pub fn palindrome_products(min: u64, max: u64) -> Option<(Palindrome, Palindrome)>
Which appears to be a single pair of the smallest and largest products.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (9 by maintainers)
My below comment is only meant to answer the question “is there a solution that will pass the current test suite?” - my comment makes no judgment on the value of the exercise or the lack thereof.
If I understand correctly, solution https://exercism.org/tracks/rust/exercises/palindrome-products/solutions/petertseng passes the current test suite (I submitted it minutes before writing this, and the results screen shows the below (“14 tests passed”))