blob: fd02558cf3a245286155f6ab06c0cadff2353725 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Task 1: "Survivor
There are 50 people standing in a circle in position 1 to 50. The person
standing at position 1 has a sword. He kills the next person i.e. standing
at position 2 and pass on the sword to the immediate next i.e. person
standing at position 3. Now the person at position 3 does the same and
it goes on until only one survives.
Write a script to find out the survivor.
"
My notes: cute, sounds easy. Let's investigate this for N=1..max
Task #2: "Palindrome Dates
Write a script to print all Palindrome Dates between 2000 and 2999. The
format of date is mmddyyyy. For example, the first one was on October 2,
2001 as it is represented as 10022001.
"
My notes: cute, but why American date format? Let's let the user choose..
|