From 46fd8a30bc02aad49af50ad82394d85e8881931f Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Fri, 14 Jan 2022 11:49:23 +0100 Subject: [PATCH] day 18: improve tree structure explanation --- 2021/day18/aoc-c.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/2021/day18/aoc-c.c b/2021/day18/aoc-c.c index a04491e..1d54f56 100644 --- a/2021/day18/aoc-c.c +++ b/2021/day18/aoc-c.c @@ -24,15 +24,16 @@ * * Example, [1,[4,2]] is represented as : * - * ------> SN root <-------------- Depth: 0 - * | / \ | - * LL| / \ | - * | / \ |LL - * --> 1 <--- SN node | Depth: 1 - * | / \ | - * | / \ | - * LL---> 4 <-------> 2 <-- Depth: 2 - * LL + * +-------> SN root <---------------+ Depth: 0 + * | / \ | + * |LL / \ | + * | / \ |LL + * +---> 1 <--+ SN node | Depth: 1 + * | / \ | + * |LL / \ | + * | / \ | + * +--> 4 <-------> 2 <---+ Depth: 2 + * LL */ static pool_t *pool_nodes;