• + 0 comments

    public static int beautifulTriplets(int d, List arr) { // Write your code here Set set=new HashSet<>(); for(int i:arr) set.add(i); int cnt=0,c,e; int l=arr.size(); for(int i=0;i

        }  
    

    return cnt; }