Camel
Peter
Peter Campbell Smith

The Weekly Challenge

More information

More

The Weekly Challenge

Perl


Peter's solutions

Week  Date Task 1 Task 2
 365  16.03.26

Alphabet index digit sum [13]

Valid token counter [19]

 364  09.03.26

Decrypt string [8]

Goal parser [8]

 363  02.03.26

String lie detector [15]

Subnet sheriff [31]

 362  23.02.26

Echo chamber [6]

Spellbound sorting [67]

 361  16.02.26

Zeckendorf representation [21]

Find celebrity [26]

 360  09.02.26

Text justifier [10]

Word sorter [9]

 359  02.02.26

Digital root [11]

String reduction [7]

 358  26.01.26

Max str value [9]

Encrypted string [14]

 357  19.01.26

Kaprekar constant [13]

Unique fraction generator [12]

 356  12.01.26

Kolakoski sequence [12]

Who wins [18]

 355  05.01.26

Thousand separator [6]

Mountain array [19]

 354  29.12.25

Min abs diff [13]

Shift grid [18]

 353  22.12.25

Max words [9]

Validate coupon [12]

 352  15.12.25

Match string [15]

Binary prefix [10]

 351  08.12.25

Special average [9]

Arithmetic progression [13]

 350  01.12.25

Good substrings [13]

Shuffle pairs [25]

 349  24.11.25

Power string [8]

Meeting point [10]

 348  17.11.25

String alike [16]

Convert time [17]

 347  10.11.25

Format date [11]

Format phone number [12]

 346  03.11.25

Longest parenthesis [30]

Magic expression [19]

 345  27.10.25

Peak positions [9]

Last visitor [16]

 344  20.10.25

Array form compute [6]

Array formation [21]

 343  13.10.25

Zero friend [4]

Champion team [23]

 342  06.10.25

Balance string [17]

Max score [13]

 341  29.09.25

Broken keyboard [9]

Reverse prefix [9]

 340  22.09.25

Duplicate removals [19]

Ascending numbers [12]

 339  15.09.25

Max diff [25]

Peak point [9]

 338  08.09.25

Highest row [18]

Max distance [8]

 337  01.09.25

Smaller than current [8]

Odd matrix [17]

 336  25.08.25

Equal group [18]

Final score [19]

 335  18.08.25

Common characters [15]

Find winner [25]

 334  11.08.25

Range sum [6]

Nearest valid point [15]

 333  04.08.25

Straight line [28]

Duplicate zeros [4]

 332  28.07.25

Binary date [5]

Odd letters [9]

 331  21.07.25

Last word [4]

Buddy strings [28]

 330  14.07.25

Clear digits [6]

Title capital [10]

 329  07.07.25

Counter integers [11]

Nice string [23]

 328  30.06.25

Replace all ? [10]

Good string [22]

 327  23.06.25

Missing integers [7]

Mad [9]

 326  16.06.25

Day of the year [11]

Decompressed list [7]

 325  09.06.25

Consecutive ones [13]

Final price [10]

 324  02.06.25

2d array [20]

Total xor [11]

 323  26.05.25

Increment decrement [7]

Tax amount [17]

 322  19.05.25

String format [10]

Rank array [10]

 321  12.05.25

Distinct average [8]

Backspace compare [9]

 320  05.05.25

Maximum count [6]

Sum difference [7]

 319  28.04.25

Word count [8]

Minimum common [13]

 318  21.04.25

Group position [6]

Reverse equals [20]

 317  14.04.25

Acronyms [7]

Friendly strings [18]

 316  07.04.25

Circular [9]

Subsequence [18]

 315  01.04.25

Find words [7]

Find third [7]

 314  24.03.25

Equal strings [14]

Sort column [11]

 313  17.03.25

Broken keys [6]

Reverse letters [10]

 312  10.03.25

Minimum time [12]

Balls and boxes [8]

 311  03.03.25

Upper lower [7]

Group digit sum [14]

 310  24.02.25

Arrays intersection [16]

Sort odd even [13]

 309  17.02.25

Min gap [11]

Min diff [11]

 308  10.02.25

Count common [11]

Decode xor [11]

 307  03.02.25

Check order [9]

Find anagrams [16]

 306  27.01.25

Odd sum [9]

Last element [13]

 305  20.01.25

Binary prefix [9]

Alien dictionary [19]

 304  13.01.25

Arrange binary [13]

Maximum average [14]

 303  06.01.25

3-digits even [33]

Delete and earn [27]

 302  30.12.24

Ones and zeroes [16]

Step by step [9]

 301  23.12.24

Largest number * [21]

Hamming distance * [10]

 300  16.12.24

Beautiful arrangement [45]

Nested array [19]

 299  09.12.24

Replace words [7]

Word search [46]

 298  02.12.24

Maximal square [25]

Right interval [14]

 297  25.11.24

Contiguous array [16]

Semi-ordered permutation [17]

 296  18.11.24

String compression [35]

Matchstick square [26]

 295  11.11.24

Word break [14]

Jump game [29]

 294  04.11.24

Consecutive sequence [20]

Next permutation [17]

 293  28.10.24

Similar dominoes [16]

Boomerang [16]

 292  21.10.24

Twice largest [10]

Zuma game [61]

 291  14.10.24

Middle index [13]

Poker hand rankings [97]

 290  07.10.24

Double exist [8]

Luhn’s algorithm [17]

 289  30.09.24

Third maximum [16]

Jumbled letters [30]

 288  23.09.24

Closest palindrome [11]

Contiguous block [43]

 287  16.09.24

Strong password [36]

Valid number [9]

 286  09.09.24

Self spammer [6]

Order game [20]

 285  02.09.24

No connection [17]

Making change [28]

 284  26.08.24

Lucky integer [11]

Relative sort [16]

 283  19.08.24

Unique number [10]

Digit count value [12]

 282  12.08.24

Good integer [9]

Changing keys [9]

 281  05.08.24

Check color [4]

Knight’s move [39]

 280  29.07.24

Twice appearance [9]

Count asterisks [7]

 279  22.07.24

Sort letters [7]

Split string [6]

 278  15.07.24

Sort string [6]

Reverse word [9]

 277  08.07.24

Count common [11]

Strong pair [44]

 276  01.07.24

Complete day [13]

Maximum frequency [13]

 275  24.06.24

Broken keys [8]

Replace digits [12]

 274  17.06.24

Goat Latin [17]

Bus route [24]

 273  10.06.24

Percentage of character [7]

B after A [4]

 272  03.06.24

Defang IP address [3]

String score [6]

 271  27.05.24

Maximum ones [19]

Sort by 1 bits [14]

 270  20.05.24

Special positions [22]

Equalize array [20]

 269  13.05.24

Bitwise or [4]

Distribute elements [11]

 268  06.05.24

Magic numbers [6]

Number game [7]

 267  29.04.24

Product sign [15]

Line counts [25]

 266  22.04.24

Uncommon words [7]

X matrix [19]

 265  15.04.24

33% appearance [12]

Completing word [20]

 264  08.04.24

Greatest English letter [11]

Target array [19]

 263  01.04.24

Target index [12]

Merge items [10]

 262  25.03.24

Max positive negative [8]

Count equal divisible [17]

 261  18.03.24

Element digit sum [8]

Multiply by 2 [9]

 260  11.03.24

Unique occurrences [14]

Dictionary rank [15]

 259  04.03.24

Banking day offset [79]

Line parser [21]

 258  26.02.24

Count even digits number [5]

Sum of values [15]

 257  19.02.24

Smaller than current [9]

Reduced row echelon [56]

 256  12.02.24

Maximum pairs [15]

Merge strings [12]

 255  05.02.24

Odd character [5]

Most frequent word [19]

 254  29.01.24

Three power [24]

Reverse vowels [19]

 253  22.01.24

Split strings [12]

Weakest row [26]

 252  15.01.24

Special numbers [10]

Unique sum zero [27]

 251  08.01.24

Concatenation Value [10]

Lucky numbers [45]

 250  01.01.24

Smallest index [10]

Alphanumeric string value [8]

 249  25.12.23

Equal pairs [11]

DI string match [33]

 248  18.12.23

Shortest distance [17]

Submatrix sum [30]

 247  11.12.23

Secret Santa [23]

Most frequent letter pair [12]

 246  04.12.23

6 out of 49 [11]

Sort language [33]

 245  27.11.23

Sort language [8]

Largest of three [23]

 244  20.11.23

Count smaller [14]

Group hero [20]

 243  13.11.23

Reverse pairs [14]

Floor sum [18]

 242  06.11.23

Missing members [10]

Flip matrix [14]

 241  30.10.23

Arithmetic triplets [21]

Prime order [48]

 240  23.10.23

Acronym [9]

Build array [13]

 239  16.10.23

Same string [4]

Consistent strings [10]

 238  09.10.23

Running sum [7]

Persistence sort [25]

 237  09.10.23

Seize the day [28]

Maximise greatness [46]

 236  25.09.23

Exact change [34]

Array loops [18]

 235  18.09.23

Remove one [29]

Duplicate zeroes [7]

 234  11.09.23

Common characters [19]

Unequal triplets [22]

 233  04.09.23

Similar words [15]

Frequency sort [16]

 232 28.08.23 No challenge was set for this week
 231  21.08.23

Min max [3]

Senior citizens [3]

 230  14.08.23

Separate digits * [3]

Count words * [8]

 229  07.08.23

Lexicographically ordered [9]

Two out of three [10]

 228  31.07.23

Unique sum [5]

Empty array [19]

 227  24.07.23

Friday 13th [9]

Roman maths [32]

 226  17.07.23

Shuffle strings [8]

Zero array [17]

 225  10.07.23

Max words [10]

Left right sum diff [15]

 224  03.07.23

Special notes [14]

Additive number [26]

 223  26.06.23

Count primes [22]

Box coins [33]

 222  19.06.23

Matching members [13]

Last member [13]

 221  12.06.23

Good strings [17]

Arithmetic subsequences [34]

 220  05.06.23

Common characters [8]

Squareful [26]

 219  29.05.23

Sorted squares [3]

Travel expenditure [30]

 218  22.05.23

Maximum product [28]

Matrix sum [34]

 217  15.05.23

Sorted matrix [7]

Max number [18]

 216  08.05.23

Registration number [17]

Word stickers [55]

 215  01.05.23

Odd one out [7]

Number placement [11]

 214  24.04.23

Rank score [18]

Collect points [46]

 213  17.04.23

Fun sort [6]

Shortest route [67]

 212  10.04.23

Jumping letters [10]

Sequential substrings [27]

 211  03.04.23

Toeplitz matrix [31]

Split same average [33]

 210  27.03.23

Kill and win [32]

Number collision [18]

 209  20.03.23

A 3-letter alphabet [10]

Merging emails [38]

 208  13.03.23

Minimum index sum [20]

Duplicate and missing [18]

 207  06.03.23

Linear words [7]

The H-index for citations [7]

 206  27.02.23

Measuring the gaps [15]

Array pairings [5]

 205  20.02.23

Third highest value [20]

Maximum xor [23]

 204  13.02.23

Uphill or downhill? [21]

Reshape matrix [29]

 203  06.02.23

Special quads [43]

Copy folders [14]

 202  30.01.23

Three odd things [8]

Find the valleys [31]

 201  23.01.23

Missing numbers [13]

Piles of pennies [10]

 200  16.01.23

Arithmetic slices [28]

Seven segment 200 [32]

 199  09.01.23

Good pairs [16]

Good triplets [17]

 198  02.01.23

Max gap [24]

Prime count [12]

 197  26.12.22

Move zero * [12]

Wiggle sort * [23]

 196  19.12.22

Pattern 132 [17]

Range list [24]

 195  12.12.22

Special integers [12]

Most frequent even [18]

 194  07.12.22

Digital clock [18]

Frequency equalizer [40]

 193  28.11.22

Binary string [9]

Odd string [19]

 192  21.11.22

Binary flip [11]

Equal Distribution [3]

 191  14.11.22

Twice largest [15]

Cute List [15]

 190  07.11.22

Capital detection [8]

Decoded List [21]

 189  31.10.22

Greater character [17]

Array degree [7]

 188  24.10.22

Divisible Pairs [19]

Total Zero [19]

 187  17.10.22

Days together [22]

Magical triplets [46]

 186  10.10.22

Zip list [8]

Unicode makeover [12]

 185  03.10.22

Mac address [9]

Mask code [15]

 184  26.09.22

Sequence number [13]

Split array [21]

 183  19.09.22

Unique array [17]

Date difference [7]

 182  12.09.22

Max index [19]

Common path [15]

 181  05.09.22

Sentence order [24]

Hot day [21]

 180  29.08.22

First unique character * [10]

Trim list * [4]

 179  22.08.22

Ordinal number spelling * [44]

Unicode sparkline * [23]

 178  15.08.22

Quater-imaginary base [54]

Business date [7]

 177  08.08.22

Damm algorithm [22]

Palindromic prime cyclops [12]

 176  01.08.22

Permuted multiples [12]

Reversible numbers [10]

 175  25.07.22

Last Sunday [22]

Perfect totient numbers [11]

 174  18.07.22

Disarium numbers [22]

Permutation ranking [45]

 173  11.07.22

Esthetic number [18]

Sylvester’s sequence [17]

 172  04.07.22

Prime partition [31]

Five-number summary [9]

 171  27.06.22

Abundant number [15]

First-class function * [21]

 170  20.06.22

Primorial numbers [20]

Kronecker product [25]

 169  13.06.22

Brilliant numbers [16]

Achilles numbers [29]

 168  06.06.22

Perrin prime [18]

Home prime [6]

 167  30.05.22

Circular prime [12]

Gamma function [18]

 166  23.05.22

Hexadecimal words [40]

K-directory diff [32]

 165  16.05.22

Scalable vector graphics [28]

Line of best fit [51]

 164  09.05.22

Prime palindrome [14]

Happy numbers [33]

 163  02.05.22

Sum bitwise operator [20]

Summations [23]

 162  25.04.22

ISBN-13 [13]

Wheatstone-Playfair [17]

 161  18.04.22

Abecedarian words [26]

Pangrams [18]

 160  11.04.22

Four is magic [18]

Equilibrium index [7]

 159  04.04.22

Farey sequence * [14]

Möbius number * [9]

 158  28.03.22

Additive primes [10]

First series Cuban primes [13]

 157  21.03.22

Pythagorean means [19]

Brazilian number [10]

 156  14.03.22

Pernicious numbers [15]

Weird number [28]

 155  07.03.22

Fortunate numbers [10]

Pisano period [14]

 154  28.02.22

Missing permutation [12]

Padovan primes [14]

 153  21.02.22

Left factorials [10]

Factorions [21]

 152  14.02.22

Triangle sum path [5]

Rectangle area [5]

 151  07.02.22

Binary tree depth [27]

Rob the house [7]

 150  31.01.22

Fibonacci words [20]

Square-free integer [23]

 149  24.01.22

Fibonacci digit sum [8]

Largest square [17]

 148  17.01.22

Eban numbers [27]

Cardano triplets [6]

 147  10.01.22

Truncatable prime [31]

Pentagon numbers [21]

 146  03.01.22

10001st prime number [23]

Curious fraction tree [17]

 145  27.12.21

Dot product [21]

Palindromic tree [5]

 144  20.12.21

Semiprime [12]

Ulam sequence [27]

 143  13.12.21

Calculator [7]

Stealthy number [20]

 142  06.12.21

Divisor last digit [25]

Sleep sort [14]

 141  29.11.21

Number divisors [25]

Like numbers [28]

 140  22.11.21

Add binary [10]

Multiplication table [17]

 139  15.11.21

JortSort [16]

Long primes [35]

 138  08.11.21

Workdays [8]

Split number [34]

 137  01.11.21

Long year * [6]

Lychrel number * [19]

 136  25.10.21

Two friendly * [13]

Fibonacci sequence * [25]

 135  18.10.21

Middle 3-digits [14]

Validate SEDOL [17]

 134  11.10.21

Pandigital numbers [13]

Distinct terms count [13]

 133  04.10.21

Integer square root [16]

Smith numbers [30]

 132  27.09.21

Mirror dates * [10]

Hash join * [32]

 131  20.09.21

Consecutive arrays [8]

Find pairs [13]

 130  13.09.21

Odd number [9]

Binary search tree [41]

 129  06.09.21

Root distance * [16]

Add linked lists [20]

 128  30.08.21

Maximum sub-matrix * [37]

Minimum platforms [15]

 127  23.08.21

Disjoint sets * [12]

Conflict intervals * [15]

 126  16.08.21

Count numbers * [6]

Minesweeper game * [27]

 125  09.08.21

Pythagorean triples [14]

Binary tree diameter * [37]

 124  02.08.21

Happy women’s day * [7]

Tug of war [26]

 123  26.07.21

Ugly numbers * [20]

Square points * [16]

 122  19.07.21

Average of stream * [9]

Basketball points * [17]

 121  12.07.21

Invert bit * [8]

The travelling salesman * [27]

 120  05.07.21

Swap odd/even bits * [11]

Clock angle * [9]

 119  28.06.21

Swap nibbles * [12]

Sequence without 1-on-1 * [20]

 118  21.06.21

Binary palindrome * [8]

Adventure of knight * [61]

*not submitted to Github
[nn]lines of code
494total tasks completed
8530total lines of code
291/2task with most lines (97)

 

Any content of this website which has been created by Peter Campbell Smith is in the public domain