...

/

Solution: Strobogrammatic Number

Solution: Strobogrammatic Number

Let’s solve the Strobogrammatic Number problem using the Two Pointers pattern.

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 180180 degrees (viewed upside down). For example, “69” is strobogrammatic because it looks the same when flipped upside down, while “962” is not.

Constraints:

  • 1<=1 <= ...

Access this course and 1400+ top-rated courses and projects.