Remix.run Logo
DetectDefect 9 hours ago

Shall we showcase our trees?

        *
        |
       /.\
      /o..\
      /..O\
     /.o..o\
     /...o.\
    /..O..o.\
    ^^^[_]^^^
cluckindan 8 hours ago | parent | next [-]

      o
     / \
    o   o
       / \
      o   o
         / \
        o   o
       /   / \
      o   o   o
         /   / \
        o   o   o
I knew I should have invested in that fancy self-balancing one, oh well.
basilikum 8 hours ago | parent | next [-]

Ah, don't worry. If you just append to one side always and do an anti-balancing one, you get a string of lights.

  o  
   \  
    o  
     \  
      o  
       \  
        o  
         \  
          o  
           \  
            o  
             \  
              o  
               \  
                o
contravariant 8 hours ago | parent | prev [-]

Hey we have the same tree!

    (()(()((())((())(()())))))
culi 6 hours ago | parent [-]

Pinus newickii

encomiast 7 hours ago | parent | prev | next [-]

May you have a perfectly balanced Christmas

                 h
            _____|______
          /             \
         r               t
       /   \           /   \
      e     .         i     a
     / \   / \       / \   / \
    M   r y   C     r   s m   s
frunkad an hour ago | parent [-]

hahaha, Merry Christmas to you too!

blazingbanana 8 hours ago | parent | prev | next [-]

                                .-^-.
                               /_/_\_\
                              /_/_/_\_\
                             /_/_/_/_\_\
                            /_/_/_/_/_\_\
                           /_/_/_o_/_/_\_\
                          /_/_o_/_/_o_/_\_\
                         /_/_/_/_/_/_/_/_\_\
                        /_/_o_/_/_o_/_/_/_\_\
                       /_/_/_/_/_/_/_/_/_/_\_\
                      /_/_/_o_/_/_o_/_/_o_/_\_\
                     /_/_/_/_/_/_/_/_/_/_/_/_\_\
                    /_/_o_/_/_o_/_/_o_/_/_o_/_\_\
                   /_/_/_/_/_/_/_/_/_/_/_/_/_/_\_\
                 /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_\_\
                /_/_o_/_/_o_/_/_o_/_/_o_/_/_o_/_/_\_\
              /_/_/_/Merry Christmas HackerNews__/_/\_\
             /_/_o_/_/_o_/_/_o_/_/_o_/_/_o_/_/_o_/_/_\_\
            /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_\_\
                           |||||||||||||||
                           |||||||||||||||
                           |||||||||||||||
                           |||||||||||||||
                          _|||||||||||||||_
KellyCriterion an hour ago | parent [-]

This one is really cool!

qingcharles 3 hours ago | parent | prev | next [-]

               DOOM BSP (XMAS) TREE :p

                     . * .
                    (IDKFA)
                  ---\ | /---
                      \|/
                  ( ROOT NODE )
                  ( Partition )
                 /`--...___...-`\
                /                \
               /                  \
        o--( Node 1 )--o      o--( Node 2 )--o
          /  Front   \          /   Back   \
         /      |     \        /      |     \
        /       o      \      /       o      \
   [SUBSECTOR]    ( Node 3 )     [SUBSECTOR]
   | (Leaf A)|    /        \     | (Leaf B)|
   |_________|   /          \    |_________|
     [SEGS]     /            \     [SEGS]
    ( Gift ) [SUBSECTOR]  [SUBSECTOR] ( Gift )
             | (Leaf C)|  | (Leaf D)|
             |_________|  |_________|
               [SEGS]       [SEGS]
sallveburrpi 9 hours ago | parent | prev | next [-]

           @
          ***
         *****
        *******
       *********
      ***********
     *************
    ***************
           |
           |
Best I can do ;/
LeoPanthera 7 hours ago | parent | next [-]

I love your player character tree topper.

blazingbanana 8 hours ago | parent | prev | next [-]

It's the thought that counts

xandrius 8 hours ago | parent | prev [-]

¥

gregfjohnson 43 minutes ago | parent | prev | next [-]

Build one yourself! Here's an interactive balanced binary tee builder: https://gregfjohnson.com/redblackbuilder.html

gerdesj 8 hours ago | parent | prev | next [-]

Lovely idea but please spare a thought for people using a screen reader! Imagine having ASCII art spelt out to you character by character, line by line.

This really is a job for a LLM.

With apologies to screen reader users: "space tab space space asterisk new line space space tab space new line space space space tab pipe new line ... forward slash o full stop full stop backslash ..."

etothet 5 hours ago | parent | prev | next [-]

           *       
          /^\ 
         /* *\
        /+@o* \
       /o*+*o+*\
      /* @+*o@+*\
     /+*o*+@*o*+*\
    /@o+*o@+*o+@o*\
   /*+@o*+@*o+*o@+*\
  /o*+@o*+@o*+@o*+o*\
 /@@@@@@@@@@@@@@@@@@@\
          |||
          |||
keepamovin 3 hours ago | parent | prev | next [-]

  `        _\/_          .
     -      /\
            /|\     `
  .   /    /*|O\.        .
          /*/|\*\
         /X/O|*\X\
        /*/X/|\X\*\   .
       /O/*/X|*\O\X\
      /*/O/X/|\X\O\*\
      ~~~~~~~~~~~~~~~
            |X|
            |X|
     Merry Christmas!
merry Christmas to all you people out there :)
KellyCriterion an hour ago | parent | prev | next [-]

▲ ▲▲▲ ▲▲▲▲▲ ▲▲▲▲▲▲▲ ▲▲▲▲▲▲▲▲▲ ▲▲▲▲▲▲▲▲▲▲▲

Hell - mine one is crashed! Claude didnt work properly :-D

phyalow 6 hours ago | parent | prev | next [-]

                    *
                   /|\
                 [ROOT]
                n=25000
              /    |    \
           [N]    [I]    [C]
          .33    .51    .94  <-- UCB1 winner
           |      |    /   \
         [OH]   [MEH] [E]   [E]
         coal   socks NICE  NICE
           |             \    \
          :/              :)   :)

       MCTS: Monte Carlo Tree Santa

   "in the limit, all children converge 
        to the nice list" - S. Claus
Merry Xmas Nerds!
5 hours ago | parent | prev | next [-]
[deleted]
Insanity 7 hours ago | parent | prev | next [-]

Class ChristmasTree extends Tree{}

randallsquared 6 hours ago | parent [-]

Not always! Sometimes `extends Plastic{}`

Timwi 6 hours ago | parent | next [-]

Or `extends Aluminum{}`!

[0] https://tvtropes.org/pmwiki/pmwiki.php/Main/AluminumChristma...

Hobadee 5 hours ago | parent | prev [-]

So Tree is an interface then, not a class?

devsda an hour ago | parent [-]

I'm pretty sure its called a Trait these days.

7 hours ago | parent | prev | next [-]
[deleted]
8 hours ago | parent | prev | next [-]
[deleted]
racl101 an hour ago | parent | prev | next [-]

renderTree(type='Christmas')

russellbeattie 3 hours ago | parent | prev | next [-]

Here's a really big one: TREE(3).

7 hours ago | parent | prev [-]
[deleted]