Rotated Digits at Arista Networks
Medium56.8% acceptance
This problem has 87.5% frequency at Arista Networks.
Problem Description
An integer `x` is a **good** if after rotating each digit individually by 180 degrees, we get a valid number that is different from `x`. Each digit must be rotated - we cannot choose to leave it alone. A number is valid if each digit remains a digit after rotation. For example: * `0`, `1`, and `...
Read full problem and hintsTopics
Also asked at 5 companies
More Arista Networks Questions
Missing NumberEasyBest Time to Buy and Sell StockEasyBinary Tree Maximum Path SumHardFind the Winner of the Circular GameMediumPalindromic SubstringsMedium
View all Arista Networks questions