A mirror number is a number that looks the same when rotated 180 degrees (looked at upside down).For example, the numbers “69”, “88”, and “818” are all mirror numbers.
Write a function to determine if a number is mirror. The number is represented as a string.
Example
No.1
Input : “69”
Output : true
No.2
Input : “68”
Output : false
Code
1 | public boolean isStrobogrammatic(String num) { |