Leeds (England) and Edinburgh (Scotland) are roughly 175 miles (280 km) apart. Walking that distance would take an average person 50–60 hours of non-stop walking—over two full days without sleep. By car, the journey takes about 3 to 3.5 hours via the M1 and A1(M).
For any realistic travel plan, take the train (≈3.5 hours), drive, or fly. Walking is only for extreme endurance challenges.