Article of the week

Bash recursion examples - part 1

Bash recursion examples - part 1

15 Jan 2017 16:58:45


Some recursive Maths functions written in BASH.


Read full article »

Recent articles

Recursive min and max functions in PHP and speed test

05 Aug 2017 15:03:39

Recursive min and max functions in PHP and speed test

This article provides two more examples of PHP functions which employ linear recursion. They are min() and max(). I wrote them partly for fun, but also to carry out a basic speed test on a piece of interpreted PHP code, results of which I hoped, would give me some insight into ...

Read more »

Recursive implementations of some Maths sequences and series in PHP

28 Jul 2017 17:54:44

Recursive implementations of some Maths sequences and series in PHP

In this article I give a couple of PHP implementations of popular Maths sequences and series. Broadly, each piece of code given returns nth term of a sequence / series. Each of the implementations depends on linear recursion. Each of the functions a is a static methods of class ...

Read more »

Finding whether a UTF-8 encoded string is palindrome

27 Jul 2017 13:49:31

Finding whether a UTF-8 encoded string is palindrome

When recently entertaining myself with recursion in PHP I have come across a problem which asked to find whether a given word was a character-unit palindrome or not. I guess, a word of explanation on character-unit palindromes is needed in this place now. Basically, they are ...

Read more »

Converting tree to correct HTML list in PHP

07 Jul 2017 22:48:43

Converting tree to correct HTML list in PHP

From time to time, when doing coding for the web or otherwise, you might come across a tree of data to be turned into a correct HTML list (what "correct" means in this context will be explained in a minute). In order to meet the requirement, you have to be able to ...

Read more »