Learn Before
Concept

Treap

A treap is a data structure that combines the properties of a binary search tree and a heap. Each node in a treap contains a data key (organized according to the binary search tree property) and a priority value (organized according to the heap property). This structure allows operations to be performed in O(logn)O(\log n) time.

0

1

Updated 2026-06-30

Tags

Python Programming Language

Data Science

Related