top of page


Solving Project Euler Problem 16: Power Digit Sum
The Challenge Project Euler Problem 16 asks: What is the sum of the digits of the number 2^1000? This might sound intimidating at first....
Oct 72 min read


Finding Amicable Numbers: A Project Euler Solution
I recently worked through the Project Euler problem on amicable numbers. Here's how I approached it and what I learned along the way....
Sep 292 min read


Solving Project Euler Problem 13: Large Sum
Project Euler Problem 13 asks us to find the first ten digits of the sum of one hundred 50-digit numbers. It's a straightforward problem...
Sep 241 min read


Character Frequency Analysis: A Python Problem Breakdown
The Problem The HackerRank "Company Logo" problem asks you to find the three most frequent characters in a string, with alphabetical...
Sep 151 min read


Finding the largest product of 4 adjacent numbers in a Grid - Project Euler Problem 24
Given a grid 20 x 20 could you print the greatest product of 4 adjacent numbers. This is precisely what Project Euler has tasked us with...
Sep 91 min read


Python: Ordered Dictionary - Another HackerRank Solution
Reference HackerRank problem: Collections.OrderedDict() | HackerRank Given an input such as the following: Could you output the...
Sep 52 min read


Hacker Rank - SQL Print all the prime numbers less than 1000 on one line separated by an ampersand
Hacker Rank has tasked the budding Data Engineer or Analyst with printing all the prime numbers less than 1000 utilising SQL. There are...
Sep 22 min read


Python Word Order - Another Hacker Rank Solution
Consider the following problem. You are given a number of words to read into your python program. The output needs to have on the first...
Aug 292 min read


Capitalize! With Hacker Rank
Another Python problem from Hacker Rank. Given an unseen string of a person's name can you capitalise the correct letters? You are asked...
Aug 251 min read


HackerRank - The Minion Game Solution
Kevin and Stuart want to play the ' The Minion Game '. Game Rules Both players are given the same string, Both players have to make...
Apr 272 min read


Calculating the probability of the number of tries scored in an NRL game using the Poisson Distribution
In the NRL one of the many markets that are capable of being framed is how many tries each team will score in a game. Utilising the...
Apr 2513 min read


Swap Case in Python - Hacker Rank Challenge to Write a Function that swaps the case of all letters in a string
Suppose you were given a string that was equal to: Hello - Welcome To The Python Community but you needed it to return: hELLO - wELCOME...
Apr 231 min read


Introductory Python HackerRank - Write a Function that determines if a year is a leap year
The Hacker Rank problem is phrased in the following way: An extra day is added to the calendar almost every four years as February 29,...
Apr 222 min read


Python HackerRank! Find the Runner-Up Score - AKA Finding the second largest number in an array, list or tuple.
Given the participants' score sheet for your University Sports Day, you are required to find the runner-up score. You are given scores....
Apr 181 min read


Stuck on the Hard Rated SQL Hackerrank Problems? Never Fear, Code Walkthrough for the Advanced Join is below.
Samantha interviews many candidates from different colleges using coding challenges and contests. Write a query to print the contest_id,...
Apr 181 min read


Calculating the Median in SQL Server - Consider This Hacker Rank Problem
A median is defined as a number separating the higher half of a data set from the lower half. Query the median of the Northern Latitudes...
Feb 221 min read


Hackerrank - Calculating Leaf, Inner and Root Nodes in a Tree with SQL
Binary Trees make up a large part of computer science, but in this case, it is a simple SQL question asked by our friends at hackerrank....
Feb 202 min read


Factorial Digit Sum
Consider the number 100! That is the product of all of the numbers between 1 and 100. That is to say, 1 x 2 x 3 ... x100. Project Euler...
Jan 91 min read


Ever wondered if your password is strong enough? Consider this password strength checker written in python!
Consider the password: terry Seems weak, but how do we know? Running the code at the bottom of the page - if we input the term terry we...
Jan 31 min read


Identifying the only human readable file in a Linux folder - Over the wire Bandit level 4 - 5 password revealed
The over the wire Capture the Flag games are a great way to sharpen your command line linux skills. To obtain the password to level 5 the...
Dec 27, 20241 min read
bottom of page