Camel
Peter
Peter Campbell Smith

The Weekly Challenge
Week 339

More information

More

The Weekly Challenge

Perl


Peter's solutions

 Date Task 1 Task 2 Week
 15.09.25

Max diff [28]

Peak point [22]

 339
 08.09.25

Highest row [28]

Max distance [18]

 338
 01.09.25

Smaller than current [18]

Odd matrix [28]

 337
 25.08.25

Equal group [30]

Final score [34]

 336
 18.08.25

Common characters [24]

Find winner [34]

 335
 11.08.25

Range sum [16]

Nearest valid point [25]

 334
 04.08.25

Straight line [42]

Duplicate zeros [14]

 333
 28.07.25

Binary date [14]

Odd letters [19]

 332
 21.07.25

Last word [14]

Buddy strings [39]

 331
 14.07.25

Clear digits [18]

Title capital [19]

 330
 07.07.25

Counter integers [23]

Nice string [36]

 329
 30.06.25

Replace all ? [22]

Good string [31]

 328
 23.06.25

Missing integers [18]

Mad [20]

 327
 16.06.25

Day of the year [28]

Decompressed list [18]

 326
 09.06.25

Consecutive ones [24]

Final price [20]

 325
 02.06.25

2d array [31]

Total xor [25]

 324
 26.05.25

Increment decrement [15]

Tax amount [27]

 323
 19.05.25

String format [22]

Rank array [24]

 322
 12.05.25

Distinct average [19]

Backspace compare [21]

 321
 05.05.25

Maximum count [18]

Sum difference [18]

 320
 28.04.25

Word count [16]

Minimum common [26]

 319
 21.04.25

Group position [16]

Reverse equals [32]

 318
 14.04.25

Acronyms [16]

Friendly strings [33]

 317
 07.04.25

Circular [19]

Subsequence [23]

 316
 01.04.25

Find words [18]

Find third [16]

 315
 24.03.25

Equal strings [27]

Sort column [23]

 314
 17.03.25

Broken keys [17]

Reverse letters [18]

 313
 10.03.25

Minimum time [22]

Balls and boxes [16]

 312
 03.03.25

Upper lower [13]

Group digit sum [22]

 311
 24.02.25

Arrays intersection [26]

Sort odd even [22]

 310
 17.02.25

Min gap [22]

Min diff [20]

 309
 10.02.25

Count common [22]

Decode xor [18]

 308
 03.02.25

Check order [18]

Find anagrams [25]

 307
 27.01.25

Odd sum [16]

Last element [20]

 306
 20.01.25

Binary prefix [18]

Alien dictionary [29]

 305
 13.01.25

Arrange binary [22]

Maximum average [24]

 304
 06.01.25

3-digits even [46]

Delete and earn [36]

 303
 30.12.24

Ones and zeroes [27]

Step by step [19]

 302
 23.12.24

Largest number * [34]

Hamming distance * [19]

 301
 16.12.24

Beautiful arrangement [53]

Nested array [27]

 300
 09.12.24

Replace words [15]

Word search [66]

 299
 02.12.24

Maximal square [44]

Right interval [23]

 298
 25.11.24

Contiguous array [30]

Semi-ordered permutation [25]

 297
 18.11.24

String compression [45]

Matchstick square [35]

 296
 11.11.24

Word break [26]

Jump game [42]

 295
 04.11.24

Consecutive sequence [30]

Next permutation [31]

 294
 28.10.24

Similar dominoes [27]

Boomerang [27]

 293
 21.10.24

Twice largest [20]

Zuma game [72]

 292
 14.10.24

Middle index [22]

Poker hand rankings [103]

 291
 07.10.24

Double exist [19]

Luhn’s algorithm [25]

 290
 30.09.24

Third maximum [28]

Jumbled letters [42]

 289
 23.09.24

Closest palindrome [21]

Contiguous block [61]

 288
 16.09.24

Strong password [46]

Valid number [20]

 287
 09.09.24

Self spammer [10]

Order game [31]

 286
 02.09.24

No connection [30]

Making change [36]

 285
 26.08.24

Lucky integer [26]

Relative sort [23]

 284
 19.08.24

Unique number [19]

Digit count value [19]

 283
 12.08.24

Good integer [21]

Changing keys [19]

 282
 05.08.24

Check color [12]

Knight’s move [47]

 281
 29.07.24

Twice appearance [19]

Count asterisks [15]

 280
 22.07.24

Sort letters [14]

Split string [16]

 279
 15.07.24

Sort string [13]

Reverse word [18]

 278
 08.07.24

Count common [19]

Strong pair [53]

 277
 01.07.24

Complete day [23]

Maximum frequency [23]

 276
 24.06.24

Broken keys [18]

Replace digits [19]

 275
 17.06.24

Goat Latin [25]

Bus route [31]

 274
 10.06.24

Percentage of character [15]

B after A [14]

 273
 03.06.24

Defang IP address [11]

String score [14]

 272
 27.05.24

Maximum ones [28]

Sort by 1 bits [25]

 271
 20.05.24

Special positions [40]

Equalize array [29]

 270
 13.05.24

Bitwise or [13]

Distribute elements [20]

 269
 06.05.24

Magic numbers [14]

Number game [15]

 268
 29.04.24

Product sign [22]

Line counts [38]

 267
 22.04.24

Uncommon words [16]

X matrix [38]

 266
 15.04.24

33% appearance [25]

Completing word [30]

 265
 08.04.24

Greatest English letter [21]

Target array [29]

 264
 01.04.24

Target index [23]

Merge items [22]

 263
 25.03.24

Max positive negative [21]

Count equal divisible [27]

 262
 18.03.24

Element digit sum [20]

Multiply by 2 [17]

 261
 11.03.24

Unique occurrences [25]

Dictionary rank [30]

 260
 04.03.24

Banking day offset [88]

Line parser [31]

 259
 26.02.24

Count even digits number [14]

Sum of values [24]

 258
 19.02.24

Smaller than current [25]

Reduced row echelon [80]

 257
 12.02.24

Maximum pairs [30]

Merge strings [20]

 256
 05.02.24

Odd character [13]

Most frequent word [31]

 255
 29.01.24

Three power [37]

Reverse vowels [31]

 254
 22.01.24

Split strings [23]

Weakest row [40]

 253
 15.01.24

Special numbers [22]

Unique sum zero [35]

 252
 08.01.24

Concatenation Value [22]

Lucky numbers [65]

 251
 01.01.24

Smallest index [18]

Alphanumeric string value [15]

 250
 25.12.23

Equal pairs [18]

DI string match [44]

 249
 18.12.23

Shortest distance [26]

Submatrix sum [34]

 248
 11.12.23

Secret Santa [34]

Most frequent letter pair [21]

 247
 04.12.23

6 out of 49 [20]

Sort language [47]

 246
 27.11.23

Sort language [15]

Largest of three [37]

 245
 20.11.23

Count smaller [23]

Group hero [30]

 244
 13.11.23

Reverse pairs [26]

Floor sum [27]

 243
 06.11.23

Missing members [23]

Flip matrix [30]

 242
 30.10.23

Arithmetic triplets [37]

Prime order [62]

 241
 23.10.23

Acronym [17]

Build array [21]

 240
 16.10.23

Same string [12]

Consistent strings [19]

 239
 09.10.23

Running sum [15]

Persistence sort [34]

 238
 09.10.23

Seize the day [40]

Maximise greatness [60]

 237
 25.09.23

Exact change [42]

Array loops [33]

 236
 18.09.23

Remove one [40]

Duplicate zeroes [16]

 235
 11.09.23

Common characters [28]

Unequal triplets [35]

 234
 04.09.23

Similar words [25]

Frequency sort [28]

 233
 28.08.23 No challenge was set for this week
 21.08.23

Min max [11]

Senior citizens [10]

 231
 14.08.23

Separate digits * [9]

Count words * [16]

 230
 07.08.23

Lexicographically ordered [18]

Two out of three [23]

 229
 31.07.23

Unique sum [16]

Empty array [29]

 228
 24.07.23

Friday 13th [18]

Roman maths [46]

 227
 17.07.23

Shuffle strings [17]

Zero array [27]

 226
 10.07.23

Max words [30]

Left right sum diff [23]

 225
 03.07.23

Special notes [23]

Additive number [39]

 224
 26.06.23

Count primes [31]

Box coins [41]

 223
 19.06.23

Matching members [24]

Last member [24]

 222
 12.06.23

Good strings [26]

Arithmetic subsequences [50]

 221
 05.06.23

Common characters [15]

Squareful [37]

 220
 29.05.23

Sorted squares [10]

Travel expenditure [42]

 219
 22.05.23

Maximum product [36]

Matrix sum [46]

 218
 15.05.23

Sorted matrix [15]

Max number [29]

 217
 08.05.23

Registration number [27]

Word stickers [63]

 216
 01.05.23

Odd one out [17]

Number placement [18]

 215
 24.04.23

Rank score [26]

Collect points [56]

 214
 17.04.23

Fun sort [17]

Shortest route [78]

 213
 10.04.23

Jumping letters [17]

Sequential substrings [34]

 212
 03.04.23

Toeplitz matrix [51]

Split same average [47]

 211
 27.03.23

Kill and win [45]

Number collision [31]

 210
 20.03.23

A 3-letter alphabet [19]

Merging emails [52]

 209
 13.03.23

Minimum index sum [31]

Duplicate and missing [26]

 208
 06.03.23

Linear words [15]

The H-index for citations [16]

 207
 27.02.23

Measuring the gaps [27]

Array pairings [11]

 206
 20.02.23

Third highest value [31]

Maximum xor [36]

 205
 13.02.23

Uphill or downhill? [21]

Reshape matrix [38]

 204
 06.02.23

Special quads [43]

Copy folders [26]

 203
 30.01.23

Three odd things [8]

Find the valleys [31]

 202
 23.01.23

Missing numbers [13]

Piles of pennies [21]

 201
 16.01.23

Arithmetic slices [37]

Seven segment 200 [32]

 200
 09.01.23

Good pairs [16]

Good triplets [23]

 199
 02.01.23

Max gap [24]

Prime count [23]

 198
 26.12.22

Move zero * [20]

Wiggle sort * [35]

 197
 19.12.22

Pattern 132 [17]

Range list [24]

 196
 12.12.22

Special integers [38]

Most frequent even [18]

 195
 07.12.22

Digital clock [18]

Frequency equalizer [40]

 194
 28.11.22

Binary string [9]

Odd string [19]

 193
 21.11.22

Binary flip [11]

Equal Distribution [29]

 192
 14.11.22

Twice largest [15]

Cute List [26]

 191
 07.11.22

Capital detection [8]

Decoded List [36]

 190
 31.10.22

Greater character [17]

Array degree [28]

 189
 24.10.22

Divisible Pairs [19]

Total Zero [19]

 188
 17.10.22

Days together [32]

Magical triplets [46]

 187
 10.10.22

Zip list [14]

Unicode makeover [21]

 186
 03.10.22

Mac address [9]

Mask code [15]

 185
 26.09.22

Sequence number [13]

Split array [21]

 184
 19.09.22

Unique array [40]

Date difference [42]

 183
 12.09.22

Max index [19]

Common path [30]

 182
 05.09.22

Sentence order [24]

Hot day [21]

 181
 29.08.22

First unique character * [17]

Trim list * [10]

 180
 22.08.22

Ordinal number spelling * [49]

Unicode sparkline * [30]

 179
 15.08.22

Quater-imaginary base [64]

Business date [47]

 178
 08.08.22

Damm algorithm [22]

Palindromic prime cyclops [12]

 177
 01.08.22

Permuted multiples [14]

Reversible numbers [10]

 176
 25.07.22

Last Sunday [22]

Perfect totient numbers [34]

 175
 18.07.22

Disarium numbers [22]

Permutation ranking [66]

 174
 11.07.22

Esthetic number [18]

Sylvester’s sequence [17]

 173
 04.07.22

Prime partition [50]

Five-number summary [38]

 172
 27.06.22

Abundant number [15]

First-class function * [25]

 171
 20.06.22

Primorial numbers [20]

Kronecker product [57]

 170
 13.06.22

Brilliant numbers [16]

Achilles numbers [29]

 169
 06.06.22

Perrin prime [18]

Home prime [15]

 168
 30.05.22

Circular prime [31]

Gamma function [35]

 167
 23.05.22

Hexadecimal words [40]

K-directory diff [32]

 166
 16.05.22

Scalable vector graphics [28]

Line of best fit [51]

 165
 09.05.22

Prime palindrome [14]

Happy numbers [33]

 164
 02.05.22

Sum bitwise operator [20]

Summations [23]

 163
 25.04.22

ISBN-13 [13]

Wheatstone-Playfair [77]

 162
 18.04.22

Abecedarian words [26]

Pangrams [48]

 161
 11.04.22

Four is magic [18]

Equilibrium index [35]

 160
 04.04.22

Farey sequence * [21]

Möbius number * [20]

 159
 28.03.22

Additive primes [10]

First series Cuban primes [13]

 158
 21.03.22

Pythagorean means [19]

Brazilian number [26]

 157
 14.03.22

Pernicious numbers [15]

Weird number [28]

 156
 07.03.22

Fortunate numbers [31]

Pisano period [34]

 155
 28.02.22

Missing permutation [12]

Padovan primes [14]

 154
 21.02.22

Left factorials [10]

Factorions [21]

 153
 14.02.22

Triangle sum path [39]

Rectangle area [36]

 152
 07.02.22

Binary tree depth [27]

Rob the house [22]

 151
 31.01.22

Fibonacci words [20]

Square-free integer [23]

 150
 24.01.22

Fibonacci digit sum [19]

Largest square [36]

 149
 17.01.22

Eban numbers [39]

Cardano triplets [27]

 148
 10.01.22

Truncatable prime [31]

Pentagon numbers [25]

 147
 03.01.22

10001st prime number [23]

Curious fraction tree [29]

 146
 27.12.21

Dot product [21]

Palindromic tree [25]

 145
 20.12.21

Semiprime [27]

Ulam sequence [27]

 144
 13.12.21

Calculator [7]

Stealthy number [20]

 143
 06.12.21

Divisor last digit [25]

Sleep sort [14]

 142
 29.11.21

Number divisors [25]

Like numbers [28]

 141
 22.11.21

Add binary [20]

Multiplication table [17]

 140
 15.11.21

JortSort [16]

Long primes [54]

 139
 08.11.21

Workdays [19]

Split number [34]

 138
 01.11.21

Long year * [13]

Lychrel number * [27]

 137
 25.10.21

Two friendly * [23]

Fibonacci sequence * [34]

 136
 18.10.21

Middle 3-digits [18]

Validate SEDOL [30]

 135
 11.10.21

Pandigital numbers [13]

Distinct terms count [40]

 134
 04.10.21

Integer square root [19]

Smith numbers [46]

 133
 27.09.21

Mirror dates * [17]

Hash join * [63]

 132
 20.09.21

Consecutive arrays [21]

Find pairs [28]

 131
 13.09.21

Odd number [12]

Binary search tree [49]

 130
 06.09.21

Root distance * [22]

Add linked lists [23]

 129
 30.08.21

Maximum sub-matrix * [61]

Minimum platforms [18]

 128
 23.08.21

Disjoint sets * [22]

Conflict intervals * [27]

 127
 16.08.21

Count numbers * [13]

Minesweeper game * [43]

 126
 09.08.21

Pythagorean triples [17]

Binary tree diameter * [45]

 125
 02.08.21

Happy women’s day * [7]

Tug of war [38]

 124
*solved after the closing date
[nn]lines of code for task
11569total lines of code

 

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