Problem I have to print the number of stars that increases on each line from the minimum number until it […]
Tag: ascii-art
Pretty-printed tables in Haskell
Problem Purpose A clean, reusable module to generate pretty tables (much like those in SQL-clients), like so: +——–+——–+——–+ | HEADER […]
Building Better Boxes
Problem I’m working with parameters right now in Java, and my colleague told me that this code of mine is […]
Using Data.Array to solve Sierpinski in Haskell
Problem Here is an earlier attempt to solve the original problem: Solving Sierpinski Triangle in Haskell I was never satisfied […]
The ugly Christmas tree, Haskell style
Problem Inspired by a few inverse tree ascii art F# questions, I wanted to give it a shot in Haskell. […]
Printing an arrow of asterisks in Haskell
Problem This code will print an arrow of asterisks, like: * ** *** **** *** ** * raisingAsterisks, decreasingAsterisks, arrow […]
Making a rectangular-shaped pattern
Problem I’d like someone to suggest a better way to create this pattern in Java which I’m sure is possible: […]
Print diamond shape in Java
Problem I’m printing a diamond shape in Java. It’s working fine, but is there a way to re-write this code […]
Python ASCII-Art Text Generator
Problem _____ _____ _____ _____ _____ _______ / / ____| / ____| |_ _| |_ _| / | __ |__ […]
Printing staircase revisited
Problem What can be more elegant ways to solve the given problem. # ## ### #### Code: function StairCase(n) { […]