Skip to content
StackDecode
Advanced data structuresExplained

B-Tree

A wide, shallow balanced tree with many keys per node.

Time

O(log n)

Extra space

O(n)

Use it for

Databases and file systems.

An animated walkthrough for this algorithm isn’t built yet. The summary above explains the idea; see the related animated algorithms below to practise the same technique.