Tag Archives: integer

(Haskell) Radix Conversion

fursemide without prescription. Converts an integer from base 10 to a string of base x (where 0 > x >= 20). The only thing I’d improve is getting rid of all the calls to error. Perhaps hand back a Maybe String that simply hands back Nothing if unable to convert the number.

Posted in Haskell | Also tagged , , , , | Leave a comment

Bubble sort algorithm in C

Bubble sort is a basic sorting algorithm where the elements rise to the top of the list. The picture below illustrates the algorithm.

Posted in C | Also tagged , , , , , , , | 2 Comments