diff --git a/C++/Max Points on a Line b/C++/Max Points on a Line new file mode 100644 index 0000000..3abb5ff --- /dev/null +++ b/C++/Max Points on a Line @@ -0,0 +1,34 @@ +class Solution{ +public : + + int maxPoints(vector>& points) + { + if(points.size()<=2) return points.size(); + int res=0; + int n=points.size(); + for(int i=0;i