Skip to content

KelstonClub/20200229

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

20200229

Challenges for 29th Feb 2020

Speaking Backwards

Ask the user to type in a phrase, then display it backwards

eg: Happy Birthday -> yadhtriB yppaH

BONUS: Display the words in reverse order

eg: My name is Tim -> Tim is name My

Uncommon letters

Ask the user to type in two words

Find the letters which are in both words,

eg: Happy Birthday -> a y

BONUS: Find the letters which are unique to one or other word

eg Peppa Pig -> eaig

How old are you?

Ask someone for their birthday as yyyymmdd and then say how old they are in years (obviously accounting for the fact that their birthday might not have happened yet this year)

BONUS: do it for years and months

Secret Santa

You have a list of 5 people. Connect them up in pairs of present-giver / present-receiver. Everyone must give a present; everyone must receive a present; no-one can give a present to themselves.

BONUS: do it again with different answers

Find the runs of numbers

You have a list containing runs of numbers with gaps in between, eg [1, 2, 3, 4, 5, 8, 9, 10, 15, 16]

Find the runs (ie here [1, 2, 3, 4, 5], [8, 9, 10], [15, 16])

BONUS: Find the missing numbers (ie here [6, 7], [11, 12, 13, 14])

About

Challenges for 29th Feb 2020

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published