Tom and probably pretty easily as well. By the end of his education, Dumbledore was already extremely powerful, and had done things with his wand that Griselda Marchbanks had never seen with a wand before, indicating that he is already likely one of the strongest wizards alive. Tom Riddle was probably almost as advanced as Dumbledore by his seventh year, considering that later they are pretty much on par with one another.
Actually, I forgot to mention this earlier. Ariana was killed during the three-way duel between them, and Albus wasn't sure which of the three had sent the curse that had killed her. That means that all three of them were using offensive spells.
Oh yeah, but Albus was likely aiming kost as Grindelwald, in order to stop him from killing Aberforth.
I didn't say that Albus was far superior to Aberforth, I just intended to say that Aberforth must have had some of the magical skill and talent that ran strongly the Dumbledore family's blood.
But did it? We know nothing about the skills of any of the other Dumbledore's. Maybe Albus was just an exceptional child. Tom Riddle was, but his family didn't appear to be anywhere near powerful. I don't think greatness runs in your blood.
Just because Neville progressed quickly does not mean that he performed any better than the rest of them. He may have started far behind the rest of the class, and managed to catch up.
He was also the only DA member still standing at the end of the battle at the Ministry of Magic, apart from Harry.
Harry (book 7) vs. Aberforth