4 Commits

Author SHA1 Message Date
James Roy
44ff3d3805 samples: Add red-black tree sample program
Introduce an example program to demonstrate
how to use the red-black tree API.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-10-13 08:44:07 +02:00
James Roy
ce8c0eac5b samples: data_structures: Fix the incorrect sample path in README
Change `samples/lib/mini_heap` to the actual path
`samples/data_structures/mini_heap`.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-10-13 08:44:07 +02:00
Sayooj K Karun
e719ba239f include: zephyr: sys: simplify MIN_HEAP_FOREACH macro
Refactor the `MIN_HEAP_FOREACH` macro to use a cleaner
for-loop style removing the need for a third `body` argument.
Update the sample application with the new macro changes.

Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
2025-06-26 11:58:05 -04:00
Sayooj K Karun
fc6f9e23ce samples: lib: min_heap: Add min-heap usage example
Introduce a simple sample application demonstrating the usage of the
min-heap API. The sample performs basic insert and remove operations
and logs the results to the console.

Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
2025-06-07 13:29:24 +01:00