Some interesting code demos
This is a small collection of interesting little side projects and code ideas I have created. I hope you enjoy them!
Odious numbers
An 'odious number' is a non-negative number that has an odd number of 1s in its binary expansion.
View DemoCassidooFactorial Zeros
How many zeros does the factorial of a number have? This is a simple algorithm to find out.
View DemoCassidooJSON Depth Calculator
This is a simple algorithm to calculate the depth of a JSON object
View DemoCassidooMissing Letters
This is an algorithm to find the missing letters in a list of consecutive letters
View DemoCassidooReversed Squares
This is an algorithm to find if a number is botha square number, and the reverse of a square number
View DemoCassidooIsomorphic Strings
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if there is a one-to-one mapping possible for every character of the first string to every character of the second string.
View DemoCassidoo