I have two lists like this (list of Map<String,Object>):
list1 : [("name","Tom"),("age","35"),("score",99.1)], [("name","Mary"),("age","20"),("score",62.2)]
list1 : [("name","Mary"),("age","20"),("score",62.6)], [("name","Tom"),("age","35"),("score",98.9)]
I want to verify if two lists are the same. But when the "score" is less than 1, I should see it as the same. For example, 99.1 and 98.9 should be regarded as the same score.
Two lists are unordered.
How could I achieve this in O(n) ?