LeetCode 149: Max Points on a Line
Find the maximum number of points lying on the same straight line using slope counting and normalization.
5 notes
Find the maximum number of points lying on the same straight line using slope counting and normalization.
Return all valid sentences formed by inserting spaces into a string so every word belongs to the dictionary, using DFS with memoization.
Compute the minimum candies needed using two greedy passes, one from the left and one from the right.
Find the minimum number of cuts needed to split a string into palindromic substrings using palindrome precomputation and dynamic programming.
Find all shortest word transformation sequences using BFS to build shortest-path parents, then backtracking to reconstruct every answer.