Original: Released on Abbey Road and part of the long, climactic medley that closes the album, it features vocals from all four of the Beatles (a rarity in their songs).
Simplified: The ending also repeats the arpeggiated guitar motif from the end of that song, similar to the figure featured in the George Harrison written songs "Here Comes the Sun" and "Badge" (co-written by Harrison and Eric Clapton).