# 99 problems

File Title Author
P01-scottp.pl P01 - Find the last box of a list. Scott Penrose
P01-topo.pl P01 - Find the last element of a list. Ryan Connelly
P02-scottp.pl P02 - Find the last but one box of a list. Scott Penrose
P02-topo.pl P02 - Find the last two elements of a list. Ryan Connelly
P03-scottp.pl P03 - Find the K'th element of a list. Scott Penrose
P03-topo.pl P03 - Find the Ryan Connelly
P04-scottp.pl P04 - Find the number of elements of a list Scott Penrose
P04-topo.pl P04 - Find the number of elements in a list. Ryan Connelly
P05-scottp.pl P05 - Reverse a list Scott Penrose
P05-topo.pl P05 - Reverse a list. Ryan Connelly
P06-ajs.pl P06 - Find out whether a list is a palindrome. Aaron Sherman
P06-scottp.pl P06 - Find out whether a list is a palindrome. Scott Penrose
P06-topo.pl P06 - Find out whether a list is a palindrome. Ryan Connelly
P07-eric256.pl P07 - Flatten a nested array structure. Eric Hodges
P07-topo.pl P07 - Flatten a nested array structure. Orginally Ryan Connelly
P07-viklund.pl P07 - Flatten a nested array structure. Johan Viklund
P08-eric256.pl P08 - Eliminate consecutive duplicates of list elements. Eric Hodges
P08-topo.pl P08 - Eliminate consecutive duplicates of list elements. Ryan Connelly
P08-viklund.pl P08 - Eliminate consecutive duplicates of list elements. Johan Viklund
P09-rje.pl P09 - Pack consecutive duplicates of list elements into sublists. Rob Eaglestone
P09-scottp.pl P09 - Pack consecutive duplicates of list elements into sublists. Scott Penrose
P09-topo.pl P09 - Pack consecutive duplicate elements of a list into sublists. Ryan Connelly
P09-unobe.pl P09 - Pack consecutive duplicates of list elements into sublists. David Romano
P10-scottp.pl P10 - Run-length encoding of a list. Scott Penrose
P10-topo.pl P10 - Run-length encoding of a list. Ryan Connelly
P10-unobe.pl P10 - Run-length encoding of a list. David Romano
P11-topo.pl P11 - Modified run-length encoding. Ryan Connelly
P11-unobe.pl P11 - Modified run-length encoding. David Romano
P12-rhebus.pl P12 - Decode a run-length encoded list. Philip Potter
P12-topo.pl P12 - Decode modified run-length encoding. Ryan Connelly
P12-unobe.pl P12 - Decode a run-length encoded list. David Romano
P13-rhebus.pl P13 - Run-length encoding of a list (direct solution). Philip Potter
P13-topo.pl P13 - Direct run-length encoding. Ryan Connelly
P13-viklund.pl P13 - Run-length encoding of a list (direct solution). Johan Viklund
P14-scottp.pl P14 - Duplicate the elements of a list. Scott Penrose
P14-topo.pl P14 - Duplicate the elements in a list. Ryan Connelly
P14-viklund.pl P14 - Duplicate the elements of a list. Johan Viklund
P15-rhebus.pl P15 - Replicate the elements of a list a given number of times. Philip Potter
P15-topo.pl P15 - Replicate the elements of a list a given number of times. Ryan Connelly
P15-unobe.pl P15 - Replicate the elements of a list a given number of times. David Romano
P16-edpratomo.pl P16 (**) Drop every N'th element from a list. Edwin Pratomo
P16-topo.pl P16 - Drop every Ryan Connelly
P17-topo.pl P17 - Split a list into two parts; the length of the first part is given. Ryan Connelly
P17-unobe.pl P17 - Split a list into two parts; the length of the first part is given. David Romano
P18-topo.pl P18 - Extract a slice from a list. Indices start at 1. Ryan Connelly
P19-topo.pl P19 - Rotate a list Ryan Connelly
P20-rhebus.pl P20 - Remove the K'th element from a list. Philip Potter
P20-topo.pl P20 - Remove the Ryan Connelly
P21-scottp.pl P21 - Insert an element at a given position into an array. Scott Penrose
P21-topo.pl P21 - Insert an element at a given position into a list. Ryan Connelly
P22-scottp.pl P22 - Create a list containing all integers within a given range. Scott Penrose
P22-topo.pl P22 - Create a list containing all integers within a given range. Ryan Connelly
P23-topo.pl P23 - Extract a given number of randomly selected elements from a list. Ryan Connelly
P24-topo.pl P24 - Draw Ryan Connelly
P25-topo.pl P25 - Generate a random permutation of the elements of a list. Ryan Connelly
P26-topo.pl P26 - Generate the combinations of Ryan Connelly
P31-rhebus.pl P31 - Determine whether a given integer number is prime. Philip Potter
P32-rhebus.pl P32 - Determine the greatest common divisor of two positive integer Philip Potter
P33-rhebus.pl P33 - Determine whether two positive integer numbers are coprime. Philip Potter
P34-rhebus.pl P34 - Calculate Euler's totient function phi(m). Philip Potter
P35-rhebus.pl P35 - Determine the prime factors of a given positive integer. Philip Potter
P36-ovid.pl P36 - Determine the prime factors of a given positive integer (2). Curtis Poe
P36-rhebus.pl P36 - Determine the prime factors of a given positive integer (2). Philip Potter
P37-rhebus.pl P37 - Calculate Euler's totient function phi(m) (improved). Philip Potter
P39-rhebus.pl P39 - A list of prime numbers. Curtis "Ovid" Poe
P40-rhebus.pl P40 - Goldbach's conjecture. Philip Potter
P41-rhebus.pl P41 - A list of Goldbach compositions. Philip Potter
P91-edpratomo.pl P91 - Knight's tour. Edwin Pratomo