Micro Challenge #13 – Optimising a dataset search

4 May 2020 - 2 minute read

Welcome to the Thirteenth of Altitude Foundation’s #MicroChallenges2020

Today we’re searching and sorting data! (It’s more exciting than it might sound – we promise.)

What’s a Micro Challenge?

These challenges are short activities to help you develop, revise or refresh your coding skills, posted every Monday, Wednesday and Friday.

Micro Challenge #13

This week, our focus is on searching and sorting

One of the most important functions of a computer is being able to sort through data and find the requested information. 

In this Python-programmed game, you need to find the number, between 1 and 100, that the computer has selected.

The Challenge:

How might you go about finding the number? How many ways can you come up with?

Review it:

Play through the game several times and consider:

  • Which system got you the fastest answer?
  • Which works best consistently?

Advanced:

The numbers 1 to 100 represent the dataset that the game is working with. For the most consistently effective search, does the dataset need to be organised in a specific way? Why?

Share it

We would love to see what you have created! Please send any pictures, videos, or files of your activities to us – either via Facebook, Twitter or Instagram  using #MicroChallenges2020 or to challenges@altitudefoundation.org. If you are emailing them to us, please let us know if you are happy for us to share your stuff on our social media platforms (with credit, of course). 

Sign-up here to receive a weekly email with Micro Challenges top tips and solutions:



Leave a comment

Leave a Reply