How to resolve the algorithm Sierpinski triangle step by step in the BQN programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Sierpinski triangle step by step in the BQN programming language

Table of Contents

Problem Statement

Produce an ASCII representation of a Sierpinski triangle of order   N.

The Sierpinski triangle of order   4   should look like this:

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Sierpinski triangle step by step in the BQN programming language

Source code in the bqn programming language

Sierp  {" •" ˜ (2𝕩)˘˘0¨´˜2˜𝕩}


  

You may also check:How to resolve the algorithm Arithmetic/Complex step by step in the Forth programming language
You may also check:How to resolve the algorithm Conway's Game of Life step by step in the HolyC programming language
You may also check:How to resolve the algorithm Bézier curves/Intersections step by step in the Go programming language
You may also check:How to resolve the algorithm Bitcoin/address validation step by step in the Rust programming language
You may also check:How to resolve the algorithm Permutations by swapping step by step in the EchoLisp programming language