I have got an array called mark which is two dimensional as below and shows student id and mark:
mark = [
[1,100],
[1,150],
[1,80],
[2,100],
[1,300],
[2,250]
]
I am going to create an array with students id and max mark as below:
result: [
[1,300],
[2,250]
]
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…