Despite a lot of the complications of 1E, I feel they did the best job with the Ranger overall. It was very useful in wilderness exploration, which was fairly uncommon but normally deadly. In combat it was almost as good as the fighter, and even got weapon specialization in Unearthed Arcana just like the fighter did. The late spellcasting allowed them to diversify a bit when facing harder challenges.
Outside of 1E... I think 5E did the best job, as even though it's the overall weakest class, the difference isn't nearly as noticeable as in prior editions. 2E and 3E had problems due to the method of non-weapon proficiency/skills used in the edition, which really hampered a lot of concepts. The 4E "ranger" was mechanically fine, but completely lacked any feel of the ranger class to date.