Problem of the Day
A new programming or logic puzzle every Mon-Fri

Watcher

Welcome to the first Monday of spring in the northern hemisphere for the year.

Today's problem is to create a watcher function. The watcher function will take in a "url", "delay", "count", and "phrase". Every "delay" seconds the watcher function should grab the contents of the "url" and check for the "phrase". If it finds the "phrase" it should return true, else go to sleep for "delay" seconds and rerun itself until it reaches "count" tries. If the phrase cannot be find after count tries return false.

Permalink: http://problemotd.com/problem/watcher/

Comments:

  • There are currently no comments. You can be first!

Content curated by @MaxBurstein