Logo
MainBooksThoughtsAbout

Patterns

Elixir solutions

LeetCode 3903: two solutions - O(n²) vs O(n) Time complexity

We're used to evaluating an algorithm's Time complexity, but we often overlook its Space complexity. However, often the best solution for Time complexity is a brute-force solution for Space complexity and vice versa.

Read more

Basic Prefix Sum pattern for coding interview preparation

The Basic Prefix Sum pattern is the foundation of all Prefix Sum variations. Start with this pattern to understand how prefix sums work before learning more advanced Prefix Sum patterns for coding interviews.

Read more

LeetCode 3875 solution explained: an interesting coding problem

LeetCode 3875 is a surprisingly simple and interesting problem that can be solved with just one line of code.

Read more

Parity pattern in detail: how to recognize and use it

The Parity pattern is obviously not one of the most famous coding patterns. However, it is an important pattern when you need to determine whether a number is odd or even.

Read more

Interval patterns: LeetCode & Coding interview guide

Get to know the main interval patterns used in LeetCode and coding interviews: Merge Intervals, Intersection, Scheduling, Sweep Line, and Coverage.

Read more
PreviousPage 11 of 13Next
☕Support AlgoBytes on Patreon

© 2026 Algobytes

Privaci Policy