leetcode-246. 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.
原题地址
首尾对比,只有五种匹配的方式:0-0, 1-1, 8-8, 6-9, 9-6。把这些存入hash table会方便许多。