The problem, in one line. Given points on a flat grid, return how many of them can sit on one straight line. LeetCode 149.
The tell. “Largest group that shares a property” again, but the property is a direction, and nothing hands it to you. Fix one point, compute the direction to every other point, and count equal directions in a map.
Included with a plan
This solution is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.