// archives


This category contains 5 posts

Facebook hiring sample test – Missing Term in an Arithmetic Progression

Missing Term in an Arithmetic Progression

Get the index (‘id’) from the most recently inserted record in MySQL using PHP

Getting the ‘id’ index from the last INSERT in MySQL

Project Euler 128 Solution

Find the 2000th hexagonal tile in which the differences between it and its 6 neighbors yield 3 primes.

Project Euler 147 Solution

Count the number of horizontal, vertical and diagonal rectangles in a rectangular grid

Source Code for Master Lock Combination Calculator

Source code in PHP for calculating combination possibilities given the last number in a combination for Master combination locks.