• Sort options

# Code Golf ScotlandCodeGolfScotland

View February 2017 - Print a Diamond Matrix.md

# February 2017 - Print a Diamond Matrix

Print a Diamond Matrix `x` numbers deep, `x` will always be greater than 0 and less than 10.

Examples:

``````(4) =>
``````
View January 2017 - Is it a leap year?.md

# January 2017 - Is it a leap year?

Return a boolean true or false based on whether the given year is a leap year.

The given integer may be positive or negative.

Keep In Mind

View December 2016 - Oh xmas tree, oh xmas tree.md

# December 2016 - Oh xmas tree, oh xmas tree

Return an xmas tree `n` rows in length.

`n` will always be greater than 0.

Examples:

View November 2016 - The Fibonacci Sequence.md

# November 2016 - The Fibonacci Sequence

Return the first N items of the Fibonacci sequence.

The input will be a whole number greater than or equal to zero.

The output should be iterable.

View October 2016 - Sum Mixed Array.md

# October 2016 - Sum Mixed Array

Given an array of integers as strings and numbers, return the sum of the array values as if all were numbers.

Return the answer as a number, not a string.

Examples:

View September 2016 - Reversed Alphabet.md

# September 2016 - Reversed Alphabet

Reverse the alphabet so that `abc => zyx` and `ABC => ZYX`

Examples:

`("code") => "xlwv"` `("Golf") => "Tlou"` `("1Avva8TT") => "1Zee8GG"`

View August 2016 - Rotate to the max.md

# August 2016 - Rotate to the max

Given a number, return the maximum value by rearranging it's digits.

Examples:

`(123) => 321` `(786) => 876` `("001") => 100` `(999) => 999` `(10543) => 54310`

View july-2016-x-marks-the-spot.md

# July 2016 - 'x' marks the spot

Given a two dimensional array, return the co-ordinates of 'x'.

The co-ordinates should be zero indexed.

The solution should pass the example cases provided.

### September 2016 - Reversed Alphabet

Winner: Joaquín Ferrero (joaquinferrero) - Perl - 40

Runner Up: Abhishek Chanda (achanda) - Python - 51

View June-2016-sillyCASE.md

# June 2016 - sillyCASE

``````foobar => fooBAR