Leetcode-Question-246: Strobogrammatic Number

原文链接:

https://leetcode.com/problems/strobogrammatic-number/

题目描述:

A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down).

Write a function to determine if a number is strobogrammatic. The number is represented as a string.

For example, the numbers “69”, “88”, and “818” are all strobogrammatic.

解析:

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注