Python - Murray State University's RacerNet

Maps are pretty much the same as Dictionaries in Python. This function constructs a map associating a number with it's largest divisor. So for example, numberToLargestDivisior(10) yields {2=1, 3=1, 4=2, 5=1, 6=3, 7=1, 8=4, 9=3, 10=5} public. static. HashMap numberToLargestDivisor(int. maxNum) {HashMap map = new ................
................