#100DaysOfCode #100DaysOfCodechallenge #freeCodeCamp #FreeCodeFridayContest #Java #LeetCode 1)There were two approaches to this, first is storing the points x and y in diff. arrays, rest same as the approach below. Space-O(2n), time-O(n) 2)Shown below
0
5
5
0
0
Download Image