Robbie Hatley's Perl Solutions To The Weekly Challenge #213

For those not familiar with "The Weekly Challenge", it is a weekly programming puzzle, usually with two parts, cycling every Sunday. You can find it here:

The Weekly Challenge

This week (2023-04-16 through 2023-04-22) is weekly challenge #213.

Task 1 is as follows:

"Write a script to sort a list of positive integers so that the sorted list consists of the even integers in ascending order followed by the odd integers in ascending order."

I found this super-simple:

Robbie Hatley's Perl Solution to The Weekly Challenge 213-1

Task 2 is as follows:

You are given a list of bidirectional routes defining a network of nodes, as well as source and destination node numbers. Write a script to find the route from source to destination that passes through fewest nodes.

That one, I didn't have time to complete, but here's a stub, as far as I got with it:

Robbie Hatley's Perl Solution to The Weekly Challenge 212-2

That's it for 213; see you on 214!

Comments

Popular posts from this blog

Robbie Hatley's Solutions To The Weekly Challenge #262

Robbie Hatley's Solutions To The Weekly Challenge #266

Robbie Hatley's Solutions To The Weekly Challenge #273