Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1003 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 1003 Bytes

Tests

Clone repo and run:

make test

Get shell to run something manually

make run

Description

Date Calculation

The Irish lottery draw takes place twice weekly on a Wednesday and a Saturday at 8pm. Write a function that calculates and returns the next valid draw date based on an optional supplied date time parameter. If no supplied date is provided, assume current date time

Least recently used cache

Implement a least recently used (LRU) cache mechanism as a decorator and demonstrate it use in a small script. The LRU must be able to admit a ‘max_size’ parameter that by default has to be 100. Candidates are advised to consider how an LRU cache should work. One source of information is: https://en.wikipedia.org/wiki/Cache_replacement_policies#LRU

Find the anagram

Write a function that accepts a word (string) and a list of words (list or tuple of strings) and return back a list with the valid anagrams for the word inside the given words list.