publicfuncPermCheck(_A:[Int] ) ->Int{
guardA.count!=0else{return0}
lettempSet :Set=Set(A)
guardtempSet.count== A.countelse{
return0
}
ifA.max() == A.count{
return1;
}
return0
}
publicfuncPermCheck(_A:[Int] ) ->Int{
guardA.count!=0else{return0}
lettempSet :Set=Set(A)
guardtempSet.count== A.countelse{
return0
}
ifA.max() == A.count{
return1;
}
return0
}