Perl Weekly Challenge 69: Strobogrammatic Numbers and 0/1 Strings
These are some answers to the Week 69 of the Perl Weekly Challenge organized by Mohammad S. Anwar.
Spoiler Alert: This weekly challenge deadline is due in a couple of days (July 19, 2020). This blog post offers some solutions to this challenge, please don’t read on if you intend to complete the challenge on your own.
Task 1: Strobogrammatic Numbers
A strobogrammatic number is a number that looks the same when looked at upside down.
You are given two positive numbers $A
and $B
such that 1 <= $A <= $B <= 10^15
.
Write a script to print all strobogrammatic numbers between the given two numbers.
Example
Input: $A = 50, $B = 100
Output: 69, 88, 96