Solution: Strobogrammatic Number
Explore how to identify strobogrammatic numbers by using a two pointers technique that compares digits from both ends of a string. Understand the digit mappings that define strobogrammatic numbers and learn to implement an efficient solution with linear time complexity and constant space.
We'll cover the following...
We'll cover the following...
Statement
Given a string num representing an integer, determine whether it is a strobogrammatic number. Return TRUE if the number is strobogrammatic or FALSE if it is not.
Note: A strobogrammatic number appears the same when rotated
...