Search⌘ K
AI Features

Solution: Strobogrammatic Number

Solution: Strobogrammatic Number asks whether a numeric string looks the same after a 180-degree rotation, returning true or false. The number may be as long as 50 digits.

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 ...