363. The Leap Code
Martin's professor taught him about gray codes, hamming, and unit distances. He also introduced him to leap codes, which are numbers where each adjacent digit differs by 1. For example, 3456 and 9878 are leap codes. It is known that all one-digit numbers are leap codes. Given a number N, find all the leap codes less than or equal to N.