How did Hanuman cross the ocean to Lanka?

Hanuman crossed the ocean in a single leap. The wise bear Jambavan reminded him of his forgotten strength. Hanuman grew huge, climbed a mountain by the shore, pressed his feet into the rock, and leapt. Over the sea he was tested: a mountain rose to offer him rest, and a serpent mother tried to swallow him. He passed both with wisdom and reached Lanka.
Source: Valmiki Ramayana. Episodes found only in later retellings are marked as such.