Article of the week

Sorting objects by their property in PHP

Sorting objects by their property in PHP

10 Dec 2016 13:10:14


A few words on a basic technique of sorting objects by their common property in PHP programming language.


Read full article »

Recent articles

Binary Search algorithm advanced implementation in PHP

17 Feb 2020 00:41:03

Binary Search algorithm advanced implementation in PHP

In this article I look at what's known as Binary Search algorithm and provide its advanced implementation in PHP programming language. This is the second part of the series on the algorithm. In the first part (main/index/binary-search-algorithm-implementation-in-php) I ...

Read more »

Binary Search algorithm implementation in PHP

16 Feb 2020 00:43:24

Binary Search algorithm implementation in PHP

In this article I take a closer look at a very efficient search algorithm called Binary Search. I implement it in PHP programming language and provide example usage for searches done on arrays of common data. This article is the first part of the two. In the second part I give a ...

Read more »

Number of unique paths in square lattice

14 Feb 2020 21:45:36

Number of unique paths in square lattice

Suppose that you have a square (N x N) grid and want to determine number of unique paths, which will take you from the top left corner in the grid to the bottom right one of if. You are allowed to move by one point at at time, and to the right or to the bottom only. For example, ...

Read more »

Week day number falling on a month day

14 Feb 2020 01:51:58

Week day number falling on a month day

Suppose, that you were born on Monday, January 1, and want to know how many Mondays happened to fall on the same day of any month of the year over, lets say, the last 100 years. It is a silly problem, but also one which points to some problems and inaccuracies ensuing from ...

Read more »