Prefix Sum
Prefix sum is a technique used to calculate the sum of elements in a given range in constant time.
Prefix sum is a technique used to calculate the sum of elements in a given range in constant time.
Depth First Search
Detecting a cycle in a linked list
Backtracking is a general algorithm for finding all (or some) solutions to computational problems, especially in combinatorial optimization.
Kadane's Algorithm for finding the maximum contiguous subbarray