Speed Coding 2016 – Q1


6 April 2016, by

Here’s the first question from our speed coding competition 2016. We’ve already held the event, so there are no prizes, but if you want to play along at home, see how quickly you can solve the challenge.

Question 1

Here are concentric squares of alternate layers of stars and spaces, starting with an outermost layer of stars of the given edge length:

 

size 5  *****    size 6  ******    size 7  *******    size 8  ********
        *   *            *    *            *     *            *      *
        * * *            * ** *            * *** *            * **** *
        *   *            * ** *            * * * *            * *  * *
        *****            *    *            * *** *            * *  * *
                         ******            *     *            * **** *
                                           *******            *      *
                                                              ********

To solve this question, generate sizes 50 and 77.

Tags: , ,

Categories: Social, Softwire, Technical

«
»

Leave a Reply

* Mandatory fields


× three = 6

Submit Comment