diff --git a/algorithms/java/src/Number of Pairs of Interchangeable Rectangles [2001].java b/algorithms/java/src/Number of Pairs of Interchangeable Rectangles [2001].java new file mode 100644 index 000000000..18174d797 --- /dev/null +++ b/algorithms/java/src/Number of Pairs of Interchangeable Rectangles [2001].java @@ -0,0 +1,24 @@ +class Solution { + public long interchangeableRectangles(int[][] a) { + int n=a.length; + double arr[]=new double[n]; + for(int i=0;i