We can improve the time complexity of some solutions from quadratic to linear using the two-pointer approach

Two-Pointer Approach

The two-pointer approach provides an efficient alternative for solving problems related to substrings, subarrays, and sequences.

January 23, 2024 · 7 min · Avnish

Go Programming Language

Go is used to build applications for cloud, network services, and web development.

June 21, 2023 · 17 min · Avnish