McAndrew scored 12 of his 19 points in the second half and Huffman finished with 17 points on 6-of-12 shooting as Brown (7-14, 2-4 Ivy League) ended a three-game losing streak.
Luke Owings led Princeton (9-9, 0-4) with 12 points.
Brown shot 61.9 percent in the second half and the Bears took their first lead on their first possession of the second half when Huffman hit a layup.
The Bears led by 11 points with 7:19 left.
McAndrew also had six rebounds and a steal.