All my bloggings about The Weekly Challenge, some of them updated from what you will find here are now at: http://ccgi.campbellsmiths.force9...| pjcs-pwc.blogspot.com
The answer to this, I believe, lies in the history of the USB protocol. A type-A* USB connection is not logically symmetrical: one end is co...| pjcs-pwc.blogspot.com
Three odd things We are given an array of integers and asked for a script that prints 1 if there are three consecutive odd numbers in the ...| pjcs-pwc.blogspot.com
Missing numbers Task: We are given an array of unique numbers and asked to w rite a script to find out all missing numbers in the range 0 ....| pjcs-pwc.blogspot.com
200/1 = Arithmetic slices You are given an array of integers, @array. Write a script to find out all Arithmetic Slices for the given arra...| pjcs-pwc.blogspot.com
199/1 = Good pairs We are given a list of integers, @list and asked to write a script to find the total count of Good Pairs. A pair (i, j)...| pjcs-pwc.blogspot.com
Find the gap Our first task this week is to take a list of integers, sort it, and find all occurrences of the maximum gap between successiv...| pjcs-pwc.blogspot.com
Pattern 132 We are given a list of integers @list and asked to find a triad i, j, k such that $i < $j < $k, and $list[$i] < $list[$k] < $lis...| pjcs-pwc.blogspot.com
Special numbers We are are given a positive integer, $n > 0 and asked to write a script to print the count of all special integers between ...| pjcs-pwc.blogspot.com
Completing the time We are given a time, such as 12:34, with one of the digits replaced by '?'. We are asked what digit when substituted for...| pjcs-pwc.blogspot.com
All the binaries We are asked to find all the binary numbers 'of length $n'. The examples show that 'length $n' means 'containing n digits' ...| pjcs-pwc.blogspot.com
Flipping binary numbers Our first task this week is to take a positive integer, render it in binary, swap the zeroes for ones and vice versa...| pjcs-pwc.blogspot.com
The twice largest We are given a list of integers and asked to write a script to find out whether the largest item in the list is at least ...| pjcs-pwc.blogspot.com
Proper capitalisation Task 1 this week gives us a string comprising capital and lower case letters and asks us to determine whether it follo...| pjcs-pwc.blogspot.com
The smallest greater Our first task this week is as follows: You are given an array of characters (a..z) and a target character. Write a scr...| pjcs-pwc.blogspot.com
Divisible pairs Task 1 supplies us with a list of integers and asks us to count the pairs selected from the list whose sums are divisible by...| pjcs-pwc.blogspot.com
Will Foo and Bar meet? Once upon a time, Foo and Bar went on holiday, separately, to the same city. We know the day each of them arrived and...| pjcs-pwc.blogspot.com
Merge like a zip Travelling in New Zealand we noticed that when two lanes of traffic merge into one, the road sign says 'Merge like a zip'. ...| pjcs-pwc.blogspot.com
Reformatting MAC addresses We are asked to take a MAC address stated as 3 dot-separated groups of 4 characters, and to reformat it as 6 colo...| pjcs-pwc.blogspot.com
Sequence numbers Task 1 this week states that we are given a list of strings in the format aa9999 ie first 2 characters can be anything in a...| pjcs-pwc.blogspot.com
Unique arrays We are given list of arrayrefs and asked to write a script to remove duplicates, ie to eliminate references to arrays which ar...| pjcs-pwc.blogspot.com
Where's the biggest item in a list? We are given a list of integers and are to find the index of the first occurrence of the largest number...| pjcs-pwc.blogspot.com
Alphabetical sentences Why would you ever want to do this? Only Mohammad knows. The obvious logic, and the way I did it was: Split the text ...| pjcs-pwc.blogspot.com
QIBs Today's first 'fun task' (as Gabor puts it) is: Write a script to convert a given number (base 10) to quater-imaginary base number and ...| pjcs-pwc.blogspot.com
Special quads We are given an array of integers and asked to write a script to find the special quadruplets within the...| pjcs-pwc.blogspot.com