blob: d120449c9b6a79852b743e27aa2e75b20af3c2ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Challenge 1: "Write a script to display months from the year 1900 to 2019 where you find 5 weekends i.e. 5 Friday, 5 Saturday and 5 Sunday."
My notes:
Clearly defined, although Friday isn't normally considered part of the weekend
is it? Anyway, it's clear here that Friday - Sunday is the weekend for the
purposes of this question. Date::Manip can do this easily enough.
Challenge 2: "Write a script that can wrap the given paragraph at a specified
column using the greedy algorithm."
My notes: Another clearly described problem. Greedy algorithm wiki page
just neans: fit words on the line while they fit:-)
|