I'm not so familiar with complexity notation, can someone help me identifying the complexity of this algorithm?
for (int i = 0; i < records.size(); i++){
for (int j = i; j < records.size(); j++){
if(j != i & isDuplicate(records.get(i), records.get(j))){
Pair p = new Pair(records.get(i).RecID,records.get(j).RecID);
duplicates.add(p);
}
}
}
I have a database table and want to check each record, with all the records only once, to check if they are duplicates.