Solution: Strobogrammatic Number
Explore how to use the two pointers technique to verify if a number string is strobogrammatic by comparing digit pairs from both ends. Understand how specific digits map to each other when rotated 180 degrees and how to implement an efficient O(n) time and O(1) space solution.
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
...