Lewis Hamilton says his recovery from 10th on the grid to second place at the Las Vegas Grand Prix reminded him of his junior days in karting competitions.