Problem
Ask
Submissions

Problem: Strobogrammatic Number

Medium
30 min
Understand how to check if a numeric string remains the same when rotated 180 degrees, known as a strobogrammatic number. This lesson teaches you to apply the two-pointer method for efficient problem solving and prepares you to implement this logic in coding interview scenarios.

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 <= num.length <=50<= 50

  • num contains only digits.

  • num has no leading zeros except when the number itself is zero.

Problem
Ask
Submissions

Problem: Strobogrammatic Number

Medium
30 min
Understand how to check if a numeric string remains the same when rotated 180 degrees, known as a strobogrammatic number. This lesson teaches you to apply the two-pointer method for efficient problem solving and prepares you to implement this logic in coding interview scenarios.

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 <= num.length <=50<= 50

  • num contains only digits.

  • num has no leading zeros except when the number itself is zero.