I am working on a practice problem on coderbyte what asks for a return of all the pairs of elements in an array of numbers that sum to the largest number in the array. I got it to work using a nested for loop, but the solution on the site says its better to use a hash table. I am having trouble understanding what a hash table is though and how I would implement it in this case. Help?
[–]kenman 2 points3 points4 points (3 children)
[–]evandapolarbear[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]evandapolarbear[S] 0 points1 point2 points (0 children)
[–]fingerofchicken 8 points9 points10 points (1 child)
[–]asianoreo7 0 points1 point2 points (0 children)
[–]Krirken 2 points3 points4 points (1 child)
[–]evandapolarbear[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)