Hit most balloons Geeks For Geeks
Problem Link: https://practice.geeksforgeeks.org/problems/4e75764f8f1638eb4f1c5478ca1986043e15e39a/1# (It is also the problem of the day for 28-02-2022) Solution: int max=0; for(int i=0;i<n;i++){ HashMap<Double,Integer>map=new HashMap<Double,Integer>(); int x1=arr[i][0]; int y1=arr[i][1]; int count=0; for(int j=0;j<n;j++){ int x2=arr[j][0]; int y2=arr[j][1]; if(x1==x2 && y1==y2){ //same point ...