From b7b89632947bf2c7f64b981a96a7e23b36d7f9bd Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Tue, 14 May 2024 14:25:40 +0100 Subject: - Added solutions by Eric Cheung. - Added solutions by Ulrich Rieke. - Added solutions by Laurent Rosenfeld. - Added solutions by E. Choroba. - Added solutions by Mark Anderson. - Added solutions by Feng Chang. - Added solutions by PokGoPun. - Added solutions by Peter Campbell Smith. - Added solutions by Peter Meszaros. - Added solutions by W. Luis Mochan. - Added solutions by David Ferrone. - Added solutions by Niels van Dijke. - Added solutions by Arne Sommer. - Added solutions by Dave Jacoby. - Added solutions by Robbie Hatley. - Added solutions by Lubos Kolouch. - Added solutions by Asher Harvey-Smith. --- challenge-269/eric-cheung/python/ch-1.py | 29 + challenge-269/eric-cheung/python/ch-2.py | 15 + challenge-269/laurent-rosenfeld/blog.txt | 1 + challenge-269/laurent-rosenfeld/blog1.txt | 1 + challenge-269/laurent-rosenfeld/perl/ch-1.pl | 14 + challenge-269/laurent-rosenfeld/perl/ch-2.pl | 21 + challenge-269/laurent-rosenfeld/raku/ch-1.raku | 10 + challenge-269/laurent-rosenfeld/raku/ch-2.raku | 17 + challenge-269/perlboy1967/perl/ch-1.pl | 40 + challenge-269/perlboy1967/perl/ch-2.pl | 52 + challenge-269/perlboy1967/perl/ch1.pl | 40 - challenge-269/perlboy1967/perl/ch2.pl | 52 - challenge-269/ulrich-rieke/cpp/ch-1.cpp | 48 + challenge-269/ulrich-rieke/cpp/ch-2.cpp | 48 + challenge-269/ulrich-rieke/haskell/ch-1.hs | 19 + challenge-269/ulrich-rieke/haskell/ch-2.hs | 19 + challenge-269/ulrich-rieke/perl/ch-1.pl | 26 + challenge-269/ulrich-rieke/perl/ch-2.pl | 26 + challenge-269/ulrich-rieke/raku/ch-1.raku | 22 + challenge-269/ulrich-rieke/raku/ch-2.raku | 22 + challenge-269/ulrich-rieke/rust/ch-1.rs | 16 + challenge-269/ulrich-rieke/rust/ch-2.rs | 31 + stats/pwc-challenge-267.json | 289 +- stats/pwc-challenge-268.json | 646 ++ stats/pwc-current.json | 492 +- stats/pwc-language-breakdown-summary.json | 50 +- stats/pwc-language-breakdown.json | 10433 ++++++++++++----------- stats/pwc-leaders.json | 464 +- stats/pwc-summary-1-30.json | 120 +- stats/pwc-summary-121-150.json | 116 +- stats/pwc-summary-151-180.json | 46 +- stats/pwc-summary-181-210.json | 28 +- stats/pwc-summary-211-240.json | 28 +- stats/pwc-summary-241-270.json | 42 +- stats/pwc-summary-271-300.json | 120 +- stats/pwc-summary-301-330.json | 38 +- stats/pwc-summary-31-60.json | 108 +- stats/pwc-summary-61-90.json | 114 +- stats/pwc-summary-91-120.json | 36 +- stats/pwc-summary.json | 86 +- 40 files changed, 7282 insertions(+), 6543 deletions(-) create mode 100755 challenge-269/eric-cheung/python/ch-1.py create mode 100755 challenge-269/eric-cheung/python/ch-2.py create mode 100644 challenge-269/laurent-rosenfeld/blog.txt create mode 100644 challenge-269/laurent-rosenfeld/blog1.txt create mode 100644 challenge-269/laurent-rosenfeld/perl/ch-1.pl create mode 100644 challenge-269/laurent-rosenfeld/perl/ch-2.pl create mode 100644 challenge-269/laurent-rosenfeld/raku/ch-1.raku create mode 100644 challenge-269/laurent-rosenfeld/raku/ch-2.raku create mode 100755 challenge-269/perlboy1967/perl/ch-1.pl create mode 100755 challenge-269/perlboy1967/perl/ch-2.pl delete mode 100755 challenge-269/perlboy1967/perl/ch1.pl delete mode 100755 challenge-269/perlboy1967/perl/ch2.pl create mode 100755 challenge-269/ulrich-rieke/cpp/ch-1.cpp create mode 100755 challenge-269/ulrich-rieke/cpp/ch-2.cpp create mode 100755 challenge-269/ulrich-rieke/haskell/ch-1.hs create mode 100755 challenge-269/ulrich-rieke/haskell/ch-2.hs create mode 100755 challenge-269/ulrich-rieke/perl/ch-1.pl create mode 100755 challenge-269/ulrich-rieke/perl/ch-2.pl create mode 100755 challenge-269/ulrich-rieke/raku/ch-1.raku create mode 100755 challenge-269/ulrich-rieke/raku/ch-2.raku create mode 100755 challenge-269/ulrich-rieke/rust/ch-1.rs create mode 100755 challenge-269/ulrich-rieke/rust/ch-2.rs create mode 100644 stats/pwc-challenge-268.json diff --git a/challenge-269/eric-cheung/python/ch-1.py b/challenge-269/eric-cheung/python/ch-1.py new file mode 100755 index 0000000000..eaf14a1911 --- /dev/null +++ b/challenge-269/eric-cheung/python/ch-1.py @@ -0,0 +1,29 @@ + +from itertools import combinations + +def GetBitWiseOR (arrInput): + + nResult = 0 + for rLoop in arrInput: + nResult = nResult | rLoop + return nResult + +## arrInt = [1, 2, 3, 4, 5] ## Example 1 +## arrInt = [2, 3, 8, 16] ## Example 2 +arrInt = [1, 2, 5, 7, 9] ## Example 3 + +bIsEven = False + +for nLoop in range(2, len(arrInt) + 1): + + arrCombList = combinations(arrInt, nLoop) + + for arrLoop in list(arrCombList): + if GetBitWiseOR (arrLoop) % 2 == 0: + bIsEven = True + break + + if bIsEven: + break + +print (bIsEven) diff --git a/challenge-269/eric-cheung/python/ch-2.py b/challenge-269/eric-cheung/python/ch-2.py new file mode 100755 index 0000000000..bb95583826 --- /dev/null +++ b/challenge-269/eric-cheung/python/ch-2.py @@ -0,0 +1,15 @@ + +## arrInt = [2, 1, 3, 4, 5] ## Example 1 +## arrInt = [3, 2, 4] ## Example 2 +arrInt = [5, 4, 3 ,8] ## Example 3 + +arrOut_01 = [arrInt[0]] +arrOut_02 = [arrInt[1]] + +for nLoop in arrInt[2:]: + if arrOut_01[-1] > arrOut_02[-1]: + arrOut_01.append(nLoop) + else: + arrOut_02.append(nLoop) + +print (arrOut_01 + arrOut_02) diff --git a/challenge-269/laurent-rosenfeld/blog.txt b/challenge-269/laurent-rosenfeld/blog.txt new file mode 100644 index 0000000000..166cba5523 --- /dev/null +++ b/challenge-269/laurent-rosenfeld/blog.txt @@ -0,0 +1 @@ +https://blogs.perl.org/users/laurent_r/2024/05/perl-weekly-challenge-269-bitwise-or.html diff --git a/challenge-269/laurent-rosenfeld/blog1.txt b/challenge-269/laurent-rosenfeld/blog1.txt new file mode 100644 index 0000000000..47742131ba --- /dev/null +++ b/challenge-269/laurent-rosenfeld/blog1.txt @@ -0,0 +1 @@ +https://blogs.perl.org/users/laurent_r/2024/05/perl-weekly-challenge-269-distribute-elements.html diff --git a/challenge-269/laurent-rosenfeld/perl/ch-1.pl b/challenge-269/laurent-rosenfeld/perl/ch-1.pl new file mode 100644 index 0000000000..5f5cde3cbf --- /dev/null +++ b/challenge-269/laurent-rosenfeld/perl/ch-1.pl @@ -0,0 +1,14 @@ +use strict; +use warnings; +use feature 'say'; + +sub bitwise_or { + my @evens = grep { $_ % 2 == 0} @_; + return scalar @evens >= 2 ? "True" : "False"; +} + +my @tests = ([1, 2, 3, 4, 5], [2, 3, 8, 16], [1, 2, 5, 7, 9]); +for my $test (@tests) { + printf "%-12s => ", "@$test"; + say bitwise_or @$test; +} diff --git a/challenge-269/laurent-rosenfeld/perl/ch-2.pl b/challenge-269/laurent-rosenfeld/perl/ch-2.pl new file mode 100644 index 0000000000..dc9486c58c --- /dev/null +++ b/challenge-269/laurent-rosenfeld/perl/ch-2.pl @@ -0,0 +1,21 @@ +use strict; +use warnings; +use feature 'say'; + +sub distribute_elements { + my @arr1 = shift; + my @arr2 = shift; + for my $item (@_) { + if ($arr1[-1] > $arr2[-1]) { + push @arr1, $item; + } else { + push @arr2, $item; + } + } + return "@arr1 @arr2"; +} +my @tests = ( [<2 1 3 4 5>], [<3 2 4>], [<5 4 3 8>] ); +for my $test (@tests) { + printf "%-10s => ", "@$test"; + say distribute_elements @$test; +} diff --git a/challenge-269/laurent-rosenfeld/raku/ch-1.raku b/challenge-269/laurent-rosenfeld/raku/ch-1.raku new file mode 100644 index 0000000000..81789f1d09 --- /dev/null +++ b/challenge-269/laurent-rosenfeld/raku/ch-1.raku @@ -0,0 +1,10 @@ +sub bitwise-or (@in) { + my @evens = grep { $_ %% 2 }, @in; + return @evens.elems >= 2 ?? True !! False; +} + +my @tests = (1, 2, 3, 4, 5), (2, 3, 8, 16), (1, 2, 5, 7, 9); +for @tests -> @test { + printf "%-12s => ", "@test[]"; + say bitwise-or @test; +} diff --git a/challenge-269/laurent-rosenfeld/raku/ch-2.raku b/challenge-269/laurent-rosenfeld/raku/ch-2.raku new file mode 100644 index 0000000000..045f2ee595 --- /dev/null +++ b/challenge-269/laurent-rosenfeld/raku/ch-2.raku @@ -0,0 +1,17 @@ +sub distribute-elements (@in is copy) { + my @arr1 = shift @in; + my @arr2 = shift @in; + for @in -> $item { + if @arr1[*-1] > @arr2[*-1] { + push @arr1, $item; + } else { + push @arr2, $item; + } + } + return (@arr1, @arr2).flat; +} +my @tests = <2 1 3 4 5>, <3 2 4>, <5 4 3 8>; +for @tests -> @test { + printf "%-10s => ", "@test[]"; + say distribute-elements @test; +} diff --git a/challenge-269/perlboy1967/perl/ch-1.pl b/challenge-269/perlboy1967/perl/ch-1.pl new file mode 100755 index 0000000000..a35c6e2afe --- /dev/null +++ b/challenge-269/perlboy1967/perl/ch-1.pl @@ -0,0 +1,40 @@ +#!/bin/perl + +=pod + +The Weekly Challenge - 269 +- https://theweeklychallenge.org/blog/perl-weekly-challenge-269 + +Author: Niels 'PerlBoy' van Dijke + +Task 1: Bitwise OR +Submitted by: Mohammad Sajid Anwar + +You are given an array of positive integers, @ints. + +Write a script to find out if it is possible to select two or more elements of +the given array such that the bitwise OR of the selected elements has atlest one +trailing zero in its binary representation. + +=cut + +use v5.32; +use feature qw(signatures); +use common::sense; + +use Test2::V0; + +sub bitwiseOr (@ints) { + my $c = 0; + for (@ints) { + $c++ if ($_ & 1) == 0; + return 1 if $c > 1; + } + return 0; +} + +is(bitwiseOr(1,2,3,4,5),1,'Example 1.1'); +is(bitwiseOr(2,3,8,16),1,'Example 1.2'); +is(bitwiseOr(1,2,5,7,9),0,'Example 1.3'); + +done_testing; diff --git a/challenge-269/perlboy1967/perl/ch-2.pl b/challenge-269/perlboy1967/perl/ch-2.pl new file mode 100755 index 0000000000..f1bc72b785 --- /dev/null +++ b/challenge-269/perlboy1967/perl/ch-2.pl @@ -0,0 +1,52 @@ +#!/bin/perl + +=pod + +The Weekly Challenge - 269 +- https://theweeklychallenge.org/blog/perl-weekly-challenge-269 + +Author: Niels 'PerlBoy' van Dijke + +Task 2: Distribute Elements +Submitted by: Mohammad Sajid Anwar + +You are given an array of distinct integers, @ints. + +Write a script to distribute the elements as described below: + +1) Put the 1st element of the given array to a new array @arr1. +2) Put the 2nd element of the given array to a new array @arr2. + +Once you have one element in each arrays, @arr1 and @arr2, then follow the rule below: + +If the last element of the array @arr1 is greater than the last +element of the array @arr2 then add the first element of the +given array to @arr1 otherwise to the array @arr2. + +When done distribution, return the concatenated arrays. @arr1 and @arr2. + +=cut + +use v5.32; +use feature qw(signatures); +use common::sense; + +use Test2::V0; + +sub distributeElements (@ints) { + my @a = shift @ints; my @b = shift @ints; + for (@ints) { + $a[-1] < $b[-1] ? push(@b,$_) : push(@a,$_); + } + return (@a,@b); +} + +is([distributeElements(2,1,3,4,5)], + [2,3,4,5,1],'Example 2.1'); +is([distributeElements(3,2,4)], + [3,4,2],'Example 2.2'); +is([distributeElements(5,4,3,8)], + [5,3,4,8],'Example 2.3'); +is([distributeElements(3,2,2,1)], + [3,2,1,2],'Own test'); +done_testing; diff --git a/challenge-269/perlboy1967/perl/ch1.pl b/challenge-269/perlboy1967/perl/ch1.pl deleted file mode 100755 index a35c6e2afe..0000000000 --- a/challenge-269/perlboy1967/perl/ch1.pl +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/perl - -=pod - -The Weekly Challenge - 269 -- https://theweeklychallenge.org/blog/perl-weekly-challenge-269 - -Author: Niels 'PerlBoy' van Dijke - -Task 1: Bitwise OR -Submitted by: Mohammad Sajid Anwar - -You are given an array of positive integers, @ints. - -Write a script to find out if it is possible to select two or more elements of -the given array such that the bitwise OR of the selected elements has atlest one -trailing zero in its binary representation. - -=cut - -use v5.32; -use feature qw(signatures); -use common::sense; - -use Test2::V0; - -sub bitwiseOr (@ints) { - my $c = 0; - for (@ints) { - $c++ if ($_ & 1) == 0; - return 1 if $c > 1; - } - return 0; -} - -is(bitwiseOr(1,2,3,4,5),1,'Example 1.1'); -is(bitwiseOr(2,3,8,16),1,'Example 1.2'); -is(bitwiseOr(1,2,5,7,9),0,'Example 1.3'); - -done_testing; diff --git a/challenge-269/perlboy1967/perl/ch2.pl b/challenge-269/perlboy1967/perl/ch2.pl deleted file mode 100755 index f1bc72b785..0000000000 --- a/challenge-269/perlboy1967/perl/ch2.pl +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/perl - -=pod - -The Weekly Challenge - 269 -- https://theweeklychallenge.org/blog/perl-weekly-challenge-269 - -Author: Niels 'PerlBoy' van Dijke - -Task 2: Distribute Elements -Submitted by: Mohammad Sajid Anwar - -You are given an array of distinct integers, @ints. - -Write a script to distribute the elements as described below: - -1) Put the 1st element of the given array to a new array @arr1. -2) Put the 2nd element of the given array to a new array @arr2. - -Once you have one element in each arrays, @arr1 and @arr2, then follow the rule below: - -If the last element of the array @arr1 is greater than the last -element of the array @arr2 then add the first element of the -given array to @arr1 otherwise to the array @arr2. - -When done distribution, return the concatenated arrays. @arr1 and @arr2. - -=cut - -use v5.32; -use feature qw(signatures); -use common::sense; - -use Test2::V0; - -sub distributeElements (@ints) { - my @a = shift @ints; my @b = shift @ints; - for (@ints) { - $a[-1] < $b[-1] ? push(@b,$_) : push(@a,$_); - } - return (@a,@b); -} - -is([distributeElements(2,1,3,4,5)], - [2,3,4,5,1],'Example 2.1'); -is([distributeElements(3,2,4)], - [3,4,2],'Example 2.2'); -is([distributeElements(5,4,3,8)], - [5,3,4,8],'Example 2.3'); -is([distributeElements(3,2,2,1)], - [3,2,1,2],'Own test'); -done_testing; diff --git a/challenge-269/ulrich-rieke/cpp/ch-1.cpp b/challenge-269/ulrich-rieke/cpp/ch-1.cpp new file mode 100755 index 0000000000..f7fcee5fc2 --- /dev/null +++ b/challenge-269/ulrich-rieke/cpp/ch-1.cpp @@ -0,0 +1,48 @@ +#include +#include +#include +#include +#include +#include +#include +#include + +int main( ) { + std::cout << "Enter some distinct integers, separated by blanks!\n" ; + std::string line ; + std::getline( std::cin , line ) ; + std::vector numberstrings ; + char delimiter = ' ' ; + auto split = line | std::views::split( delimiter ) ; + for ( const auto & subrange : split ) { + std::string numstring( &*subrange.begin( ) , std::ranges::distance( + subrange ) ) ; + numberstrings.push_back( numstring ) ; + } + std::list numbers , arr1 , arr2 ; + for ( auto s : numberstrings ) + numbers.push_back( std::stoi( s ) ) ; + int first = numbers.front( ) ; + arr1.push_back( first ) ; + numbers.pop_front( ) ; + first = numbers.front( ) ; + arr2.push_back( first ) ; + numbers.pop_front( ) ; + while ( ! numbers.empty( ) ) { + first = numbers.front( ) ; + if ( arr1.back( ) > arr2.back( ) ) { + arr1.push_back( first ) ; + } + else { + arr2.push_back( first ) ; + } + numbers.pop_front( ) ; + } + for ( int i : arr2 ) + arr1.push_back( i ) ; + std::cout << "( " ; + std::copy( arr1.begin( ) , arr1.end( ) , std::ostream_iterator( + std::cout , " " )) ; + std::cout << ")\n" ; + return 0 ; +} diff --git a/challenge-269/ulrich-rieke/cpp/ch-2.cpp b/challenge-269/ulrich-rieke/cpp/ch-2.cpp new file mode 100755 index 0000000000..f7fcee5fc2 --- /dev/null +++ b/challenge-269/ulrich-rieke/cpp/ch-2.cpp @@ -0,0 +1,48 @@ +#include +#include +#include +#include +#include +#include +#include +#include + +int main( ) { + std::cout << "Enter some distinct integers, separated by blanks!\n" ; + std::string line ; + std::getline( std::cin , line ) ; + std::vector numberstrings ; + char delimiter = ' ' ; + auto split = line | std::views::split( delimiter ) ; + for ( const auto & subrange : split ) { + std::string numstring( &*subrange.begin( ) , std::ranges::distance( + subrange ) ) ; + numberstrings.push_back( numstring ) ; + } + std::list numbers , arr1 , arr2 ; + for ( auto s : numberstrings ) + numbers.push_back( std::stoi( s ) ) ; + int first = numbers.front( ) ; + arr1.push_back( first ) ; + numbers.pop_front( ) ; + first = numbers.front( ) ; + arr2.push_back( first ) ; + numbers.pop_front( ) ; + while ( ! numbers.empty( ) ) { + first = numbers.front( ) ; + if ( arr1.back( ) > arr2.back( ) ) { + arr1.push_back( first ) ; + } + else { + arr2.push_back( first ) ; + } + numbers.pop_front( ) ; + } + for ( int i : arr2 ) + arr1.push_back( i ) ; + std::cout << "( " ; + std::copy( arr1.begin( ) , arr1.end( ) , std::ostream_iterator( + std::cout , " " )) ; + std::cout << ")\n" ; + return 0 ; +} diff --git a/challenge-269/ulrich-rieke/haskell/ch-1.hs b/challenge-269/ulrich-rieke/haskell/ch-1.hs new file mode 100755 index 0000000000..6d161ff77d --- /dev/null +++ b/challenge-269/ulrich-rieke/haskell/ch-1.hs @@ -0,0 +1,19 @@ +module Challenge269_2 + where +import Data.List ( (!!) ) + +solution :: [Int] -> [Int] +solution list = part1 ++ part2 + where + (part1 , part2) = foldl myCombiner ([list !! 0] , [list !! 1 ] ) + ( drop 2 list ) + where + myCombiner :: ([Int] , [Int] ) -> Int -> ([Int] , [Int]) + myCombiner ( arr1 , arr2 ) number = if last arr1 > last arr2 then + (arr1 ++ [number] , arr2 ) else (arr1 , arr2 ++ [number]) + +main :: IO ( ) +main = do + putStrLn "Enter some distinct integers separated by blanks!" + numberstrings <- getLine + print $ solution $ map read $ words numberstrings diff --git a/challenge-269/ulrich-rieke/haskell/ch-2.hs b/challenge-269/ulrich-rieke/haskell/ch-2.hs new file mode 100755 index 0000000000..6d161ff77d --- /dev/null +++ b/challenge-269/ulrich-rieke/haskell/ch-2.hs @@ -0,0 +1,19 @@ +module Challenge269_2 + where +import Data.List ( (!!) ) + +solution :: [Int] -> [Int] +solution list = part1 ++ part2 + where + (part1 , part2) = foldl myCombiner ([list !! 0] , [list !! 1 ] ) + ( drop 2 list ) + where + myCombiner :: ([Int] , [Int] ) -> Int -> ([Int] , [Int]) + myCombiner ( arr1 , arr2 ) number = if last arr1 > last arr2 then + (arr1 ++ [number] , arr2 ) else (arr1 , arr2 ++ [number]) + +main :: IO ( ) +main = do + putStrLn "Enter some distinct integers separated by blanks!" + numberstrings <- getLine + print $ solution $ map read $ words numberstrings diff --git a/challenge-269/ulrich-rieke/perl/ch-1.pl b/challenge-269/ulrich-rieke/perl/ch-1.pl new file mode 100755 index 0000000000..43d774518a --- /dev/null +++ b/challenge-269/ulrich-rieke/perl/ch-1.pl @@ -0,0 +1,26 @@ +#!/usr/bin/perl ; +use strict ; +use warnings ; +use feature 'say' ; + +say "Enter some distinct integers, separated by blanks!" ; +my $line = ; +chomp( $line ) ; +my @numbers = split( /\s+/ , $line ) ; +my @arr1 ; +my @arr2 ; +my @removed = splice( @numbers , 0 , 1 ) ; +push( @arr1 , $removed[ 0 ] ) ; +@removed = splice( @numbers , 0 , 1 ) ; +push( @arr2, $removed[ 0 ] ) ; +while ( @numbers ) { + @removed = splice( @numbers, 0 , 1 ) ; + if ( $arr1[-1] > $arr2[-1] ) { + push( @arr1 , $removed[ 0 ] ) ; + } + else { + push( @arr2 , $removed[ 0 ] ) ; + } +} +push( @arr1 , @arr2 ) ; +say "(" . join( ',' , @arr1 ) . ")" ; diff --git a/challenge-269/ulrich-rieke/perl/ch-2.pl b/challenge-269/ulrich-rieke/perl/ch-2.pl new file mode 100755 index 0000000000..43d774518a --- /dev/null +++ b/challenge-269/ulrich-rieke/perl/ch-2.pl @@ -0,0 +1,26 @@ +#!/usr/bin/perl ; +use strict ; +use warnings ; +use feature 'say' ; + +say "Enter some distinct integers, separated by blanks!" ; +my $line = ; +chomp( $line ) ; +my @numbers = split( /\s+/ , $line ) ; +my @arr1 ; +my @arr2 ; +my @removed = splice( @numbers , 0 , 1 ) ; +push( @arr1 , $removed[ 0 ] ) ; +@removed = splice( @numbers , 0 , 1 ) ; +push( @arr2, $removed[ 0 ] ) ; +while ( @numbers ) { + @removed = splice( @numbers, 0 , 1 ) ; + if ( $arr1[-1] > $arr2[-1] ) { + push( @arr1 , $removed[ 0 ] ) ; + } + else { + push( @arr2 , $removed[ 0 ] ) ; + } +} +push( @arr1 , @arr2 ) ; +say "(" . join( ',' , @arr1 ) . ")" ; diff --git a/challenge-269/ulrich-rieke/raku/ch-1.raku b/challenge-269/ulrich-rieke/raku/ch-1.raku new file mode 100755 index 0000000000..cd1238fe56 --- /dev/null +++ b/challenge-269/ulrich-rieke/raku/ch-1.raku @@ -0,0 +1,22 @@ +use v6 ; + +say "Enter some distinct integers, separated by blanks!" ; +my $line = $*IN.get ; +my @numbers = $line.words.map( {.Int} ) ; +my @arr1 ; +my @arr2 ; +my @removed = @numbers.splice( 0 , 1 ) ; +@arr1.push( @removed[ 0 ] ) ; +@removed = @numbers.splice( 0 , 1 ) ; +@arr2.push( @removed[ 0 ] ) ; +while ( @numbers ) { + @removed = @numbers.splice( 0 , 1 ) ; + if ( @arr1[*-1] > @arr2[*-1] ) { + @arr1.push( @removed[0] ) ; + } + else { + @arr2.push( @removed[0] ) ; + } +} +@arr1.push( @arr2 ) ; +say "(" ~ @arr1.join( ',' ) ~ ")" ; diff --git a/challenge-269/ulrich-rieke/raku/ch-2.raku b/challenge-269/ulrich-rieke/raku/ch-2.raku new file mode 100755 index 0000000000..cd1238fe56 --- /dev/null +++ b/challenge-269/ulrich-rieke/raku/ch-2.raku @@ -0,0 +1,22 @@ +use v6 ; + +say "Enter some distinct integers, separated by blanks!" ; +my $line = $*IN.get ; +my @numbers = $line.words.map( {.Int} ) ; +my @arr1 ; +my @arr2 ; +my @removed = @numbers.splice( 0 , 1 ) ; +@arr1.push( @removed[ 0 ] ) ; +@removed = @numbers.splice( 0 , 1 ) ; +@arr2.push( @removed[ 0 ] ) ; +while ( @numbers ) { + @removed = @numbers.splice( 0 , 1 ) ; + if ( @arr1[*-1] > @arr2[*-1] ) { + @arr1.push( @removed[0] ) ; + } + else { + @arr2.push( @removed[0] ) ; + } +} +@arr1.push( @arr2 ) ; +say "(" ~ @arr1.join( ',' ) ~ ")" ; diff --git a/challenge-269/ulrich-rieke/rust/ch-1.rs b/challenge-269/ulrich-rieke/rust/ch-1.rs new file mode 100755 index 0000000000..3a05aef938 --- /dev/null +++ b/challenge-269/ulrich-rieke/rust/ch-1.rs @@ -0,0 +1,16 @@ +use std::io ; + +fn main() { + println!("Enter some integers, separated by blanks!"); + let mut inline : String = String::new( ) ; + io::stdin( ).read_line( &mut inline ).unwrap( ) ; + let entered_line : &str = &*inline ; + let numbers : Vec = entered_line.trim( ).split_whitespace( ). + map( | s | s.parse::( ).unwrap( ) ).collect( ) ; + //the bitwise or of 2 numbers ends in a 0 in its binary representation + //if they are both even. So the question amounts to checking whether + //there are at least 2 even numbers in the array + let result : bool = numbers.into_iter( ).filter( | n | n % 2 == 0 ) + .count( ) >= 2 ; + println!("{}" , result ) ; +} diff --git a/challenge-269/ulrich-rieke/rust/ch-2.rs b/challenge-269/ulrich-rieke/rust/ch-2.rs new file mode 100755 index 0000000000..8f998cd646 --- /dev/null +++ b/challenge-269/ulrich-rieke/rust/ch-2.rs @@ -0,0 +1,31 @@ +use std::io ; + +fn main() { + println!("Enter some distinct integers, separated by blanks!"); + let mut inline : String = String::new( ) ; + io::stdin( ).read_line( &mut inline ).unwrap( ) ; + let entered_line : &str = &*inline ; + let mut numbers : Vec = entered_line.trim( ).split_whitespace( ). + map( | s | s.parse::( ).unwrap( ) ).collect( ) ; + let mut arr1 : Vec = Vec::new( ) ; + let mut arr2 : Vec = Vec::new( ) ; + let mut first : i32 = numbers.remove( 0 ) ; + arr1.push( first ) ; + first = numbers.remove( 0 ) ; + arr2.push( first ) ; + while numbers.len( ) > 0 { + let len1 = arr1.len( ) ; + let len2 = arr2.len( ) ; + first = numbers.remove( 0 ) ; + if arr1[len1 - 1] > arr2[len2 - 1] { + arr1.push( first ) ; + } + else { + arr2.push( first ) ; + } + } + for i in arr2 { + arr1.push( i ) ; + } + println!("{:?}" , arr1 ) ; +} diff --git a/stats/pwc-challenge-267.json b/stats/pwc-challenge-267.json index 1202c517ae..e522398ee0 100644 --- a/stats/pwc-challenge-267.json +++ b/stats/pwc-challenge-267.json @@ -1,33 +1,33 @@ { - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - } - } + "xAxis" : { + "type" : "category" }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } + "legend" : { + "enabled" : 0 + }, + "title" : { + "text" : "The Weekly Challenge - 267" + }, + "tooltip" : { + "pointFormat" : "{point.name}: {point.y:f}
", + "followPointer" : 1, + "headerFormat" : "{series.name}
" }, "drilldown" : { "series" : [ { - "id" : "Adam Russell", - "name" : "Adam Russell", "data" : [ [ "Perl", 2 ] - ] + ], + "name" : "Adam Russell", + "id" : "Adam Russell" }, { - "name" : "Arne Sommer", "id" : "Arne Sommer", + "name" : "Arne Sommer", "data" : [ [ "Raku", @@ -40,6 +40,7 @@ ] }, { + "name" : "Athanasius", "data" : [ [ "Perl", @@ -50,11 +51,9 @@ 2 ] ], - "id" : "Athanasius", - "name" : "Athanasius" + "id" : "Athanasius" }, { - "id" : "BarrOff", "name" : "BarrOff", "data" : [ [ @@ -65,7 +64,8 @@ "Raku", 1 ] - ] + ], + "id" : "BarrOff" }, { "data" : [ @@ -78,58 +78,58 @@ 1 ] ], - "id" : "Bob Lied", - "name" : "Bob Lied" + "name" : "Bob Lied", + "id" : "Bob Lied" }, { - "id" : "Bruce Gray", - "name" : "Bruce Gray", "data" : [ [ "Raku", 2 ] - ] + ], + "name" : "Bruce Gray", + "id" : "Bruce Gray" }, { + "name" : "Dave Jacoby", "data" : [ [ "Perl", 2 ] ], - "name" : "Dave Jacoby", "id" : "Dave Jacoby" }, { "name" : "David Ferrone", - "id" : "David Ferrone", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "David Ferrone" }, { - "id" : "E. Choroba", - "name" : "E. Choroba", "data" : [ [ "Perl", 2 ] - ] + ], + "name" : "E. Choroba", + "id" : "E. Choroba" }, { "name" : "Feng Chang", - "id" : "Feng Chang", "data" : [ [ "Raku", 2 ] - ] + ], + "id" : "Feng Chang" }, { "data" : [ @@ -146,18 +146,18 @@ 1 ] ], - "id" : "Jaldhar H. Vyas", - "name" : "Jaldhar H. Vyas" + "name" : "Jaldhar H. Vyas", + "id" : "Jaldhar H. Vyas" }, { "id" : "Jan Krnavek", - "name" : "Jan Krnavek", "data" : [ [ "Raku", 2 ] - ] + ], + "name" : "Jan Krnavek" }, { "data" : [ @@ -170,20 +170,22 @@ 1 ] ], - "id" : "Jorg Sommrey", - "name" : "Jorg Sommrey" + "name" : "Jorg Sommrey", + "id" : "Jorg Sommrey" }, { - "id" : "Lance Wicks", "name" : "Lance Wicks", "data" : [ [ "Perl", 1 ] - ] + ], + "id" : "Lance Wicks" }, { + "id" : "Laurent Rosenfeld", + "name" : "Laurent Rosenfeld", "data" : [ [ "Perl", @@ -197,13 +199,20 @@ "Blog", 2 ] + ] + }, + { + "data" : [ + [ + "Perl", + 2 + ] ], - "name" : "Laurent Rosenfeld", - "id" : "Laurent Rosenfeld" + "name" : "Lubos Kolouch", + "id" : "Lubos Kolouch" }, { "name" : "Luca Ferrari", - "id" : "Luca Ferrari", "data" : [ [ "Raku", @@ -213,26 +222,27 @@ "Blog", 9 ] - ] + ], + "id" : "Luca Ferrari" }, { - "name" : "Mark Anderson", "id" : "Mark Anderson", "data" : [ [ "Raku", 2 ] - ] + ], + "name" : "Mark Anderson" }, { + "name" : "Matthew Neleigh", "data" : [ [ "Perl", 2 ] ], - "name" : "Matthew Neleigh", "id" : "Matthew Neleigh" }, { @@ -250,14 +260,14 @@ ] }, { + "name" : "Nelo Tovar", "data" : [ [ "Perl", 2 ] ], - "id" : "Nelo Tovar", - "name" : "Nelo Tovar" + "id" : "Nelo Tovar" }, { "id" : "Packy Anderson", @@ -279,7 +289,6 @@ }, { "id" : "Peter Campbell Smith", - "name" : "Peter Campbell Smith", "data" : [ [ "Perl", @@ -289,29 +298,32 @@ "Blog", 1 ] - ] + ], + "name" : "Peter Campbell Smith" }, { "id" : "Peter Meszaros", - "name" : "Peter Meszaros", "data" : [ [ "Perl", 2 ] - ] + ], + "name" : "Peter Meszaros" }, { - "name" : "Princy Mangla", "id" : "Princy Mangla", "data" : [ [ "Perl", 2 ] - ] + ], + "name" : "Princy Mangla" }, { + "id" : "Reinier Maliepaard", + "name" : "Reinier Maliepaard", "data" : [ [ "Perl", @@ -321,13 +333,10 @@ "Blog", 1 ] - ], - "name" : "Reinier Maliepaard", - "id" : "Reinier Maliepaard" + ] }, { "name" : "Robbie Hatley", - "id" : "Robbie Hatley", "data" : [ [ "Perl", @@ -337,20 +346,20 @@ "Blog", 1 ] - ] + ], + "id" : "Robbie Hatley" }, { - "id" : "Robert Ransbottom", - "name" : "Robert Ransbottom", "data" : [ [ "Raku", 2 ] - ] + ], + "name" : "Robert Ransbottom", + "id" : "Robert Ransbottom" }, { - "id" : "Roger Bell_West", "name" : "Roger Bell_West", "data" : [ [ @@ -365,7 +374,8 @@ "Blog", 1 ] - ] + ], + "id" : "Roger Bell_West" }, { "data" : [ @@ -378,10 +388,11 @@ 2 ] ], - "id" : "Thomas Kohler", - "name" : "Thomas Kohler" + "name" : "Thomas Kohler", + "id" : "Thomas Kohler" }, { + "id" : "Ulrich Rieke", "data" : [ [ "Perl", @@ -392,12 +403,11 @@ 2 ] ], - "name" : "Ulrich Rieke", - "id" : "Ulrich Rieke" + "name" : "Ulrich Rieke" }, { - "name" : "W. Luis Mochan", "id" : "W. Luis Mochan", + "name" : "W. Luis Mochan", "data" : [ [ "Perl", @@ -410,13 +420,13 @@ ] }, { + "name" : "Wanderdoc", "data" : [ [ "Perl", 2 ] ], - "name" : "Wanderdoc", "id" : "Wanderdoc" } ] @@ -425,28 +435,28 @@ { "data" : [ { - "name" : "Adam Russell", "drilldown" : "Adam Russell", - "y" : 2 + "y" : 2, + "name" : "Adam Russell" }, { - "name" : "Arne Sommer", "drilldown" : "Arne Sommer", - "y" : 3 + "y" : 3, + "name" : "Arne Sommer" }, { - "drilldown" : "Athanasius", "name" : "Athanasius", - "y" : 4 + "y" : 4, + "drilldown" : "Athanasius" }, { "drilldown" : "BarrOff", - "name" : "BarrOff", - "y" : 2 + "y" : 2, + "name" : "BarrOff" }, { - "y" : 3, "name" : "Bob Lied", + "y" : 3, "drilldown" : "Bob Lied" }, { @@ -455,29 +465,29 @@ "y" : 2 }, { - "y" : 2, "drilldown" : "Dave Jacoby", + "y" : 2, "name" : "Dave Jacoby" }, { - "drilldown" : "David Ferrone", "name" : "David Ferrone", + "drilldown" : "David Ferrone", "y" : 2 }, { + "y" : 2, "drilldown" : "E. Choroba", - "name" : "E. Choroba", - "y" : 2 + "name" : "E. Choroba" }, { - "y" : 2, "name" : "Feng Chang", + "y" : 2, "drilldown" : "Feng Chang" }, { - "name" : "Jaldhar H. Vyas", + "y" : 5, "drilldown" : "Jaldhar H. Vyas", - "y" : 5 + "name" : "Jaldhar H. Vyas" }, { "y" : 2, @@ -486,127 +496,132 @@ }, { "name" : "Jorg Sommrey", - "drilldown" : "Jorg Sommrey", - "y" : 3 + "y" : 3, + "drilldown" : "Jorg Sommrey" }, { + "name" : "Lance Wicks", "y" : 1, - "drilldown" : "Lance Wicks", - "name" : "Lance Wicks" + "drilldown" : "Lance Wicks" }, { "y" : 6, "drilldown" : "Laurent Rosenfeld", "name" : "Laurent Rosenfeld" }, + { + "drilldown" : "Lubos Kolouch", + "y" : 2, + "name" : "Lubos Kolouch" + }, { "y" : 11, - "name" : "Luca Ferrari", - "drilldown" : "Luca Ferrari" + "drilldown" : "Luca Ferrari", + "name" : "Luca Ferrari" }, { + "name" : "Mark Anderson", "y" : 2, - "drilldown" : "Mark Anderson", - "name" : "Mark Anderson" + "drilldown" : "Mark Anderson" }, { "drilldown" : "Matthew Neleigh", - "name" : "Matthew Neleigh", - "y" : 2 + "y" : 2, + "name" : "Matthew Neleigh" }, { - "name" : "Matthias Muth", + "y" : 3, "drilldown" : "Matthias Muth", - "y" : 3 + "name" : "Matthias Muth" }, { + "drilldown" : "Nelo Tovar", "y" : 2, - "name" : "Nelo Tovar", - "drilldown" : "Nelo Tovar" + "name" : "Nelo Tovar" }, { - "name" : "Packy Anderson", "drilldown" : "Packy Anderson", - "y" : 5 + "y" : 5, + "name" : "Packy Anderson" }, { - "y" : 3, "name" : "Peter Campbell Smith", + "y" : 3, "drilldown" : "Peter Campbell Smith" }, { - "y" : 2, "name" : "Peter Meszaros", - "drilldown" : "Peter Meszaros" + "drilldown" : "Peter Meszaros", + "y" : 2 }, { + "drilldown" : "Princy Mangla", "y" : 2, - "name" : "Princy Mangla", - "drilldown" : "Princy Mangla" + "name" : "Princy Mangla" }, { - "drilldown" : "Reinier Maliepaard", "name" : "Reinier Maliepaard", - "y" : 3 + "y" : 3, + "drilldown" : "Reinier Maliepaard" }, { - "drilldown" : "Robbie Hatley", "name" : "Robbie Hatley", - "y" : 3 + "y" : 3, + "drilldown" : "Robbie Hatley" }, { - "name" : "Robert Ransbottom", + "y" : 2, "drilldown" : "Robert Ransbottom", - "y" : 2 + "name" : "Robert Ransbottom" }, { "drilldown" : "Roger Bell_West", - "name" : "Roger Bell_West", - "y" : 5 + "y" : 5, + "name" : "Roger Bell_West" }, { - "name" : "Thomas Kohler", "drilldown" : "Thomas Kohler", - "y" : 4 + "y" : 4, + "name" : "Thomas Kohler" }, { + "name" : "Ulrich Rieke", "y" : 4, - "drilldown" : "Ulrich Rieke", - "name" : "Ulrich Rieke" + "drilldown" : "Ulrich Rieke" }, { - "y" : 3, "name" : "W. Luis Mochan", + "y" : 3, "drilldown" : "W. Luis Mochan" }, { "drilldown" : "Wanderdoc", - "name" : "Wanderdoc", - "y" : 2 + "y" : 2, + "name" : "Wanderdoc" } ], "name" : "The Weekly Challenge - 267", "colorByPoint" : 1 } ], - "legend" : { - "enabled" : 0 - }, "subtitle" : { - "text" : "[Champions: 32] Last updated at 2024-05-06 10:12:17 GMT" + "text" : "[Champions: 33] Last updated at 2024-05-14 13:16:13 GMT" }, - "xAxis" : { - "type" : "category" - }, - "title" : { - "text" : "The Weekly Challenge - 267" + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } }, "chart" : { "type" : "column" }, - "tooltip" : { - "headerFormat" : "{series.name}
", - "followPointer" : 1, - "pointFormat" : "{point.name}: {point.y:f}
" + "plotOptions" : { + "series" : { + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + }, + "borderWidth" : 0 + } } } diff --git a/stats/pwc-challenge-268.json b/stats/pwc-challenge-268.json new file mode 100644 index 0000000000..61dd17869b --- /dev/null +++ b/stats/pwc-challenge-268.json @@ -0,0 +1,646 @@ +{ + "drilldown" : { + "series" : [ + { + "name" : "Ali Moradi", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Ali Moradi" + }, + { + "name" : "Andrew Shitov", + "data" : [ + [ + "Raku", + 2 + ] + ], + "id" : "Andrew Shitov" + }, + { + "id" : "Arne Sommer", + "data" : [ + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Arne Sommer" + }, + { + "name" : "Asher Harvey-Smith", + "data" : [ + [ + "Raku", + 2 + ] + ], + "id" : "Asher Harvey-Smith" + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ] + ], + "name" : "Athanasius", + "id" : "Athanasius" + }, + { + "data" : [ + [ + "Raku", + 1 + ] + ], + "name" : "BarrOff", + "id" : "BarrOff" + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Bob Lied", + "id" : "Bob Lied" + }, + { + "id" : "Bruce Gray", + "data" : [ + [ + "Raku", + 2 + ] + ], + "name" : "Bruce Gray" + }, + { + "id" : "Dave Jacoby", + "name" : "Dave Jacoby", + "data" : [ + [ + "Perl", + 2 + ] + ] + }, + { + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "David Ferrone", + "id" : "David Ferrone" + }, + { + "id" : "E. Choroba", + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "E. Choroba" + }, + { + "data" : [ + [ + "Raku", + 2 + ] + ], + "name" : "Feng Chang", + "id" : "Feng Chang" + }, + { + "id" : "Jaldhar H. Vyas", + "name" : "Jaldhar H. Vyas", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ] + }, + { + "id" : "Jan Krnavek", + "name" : "Jan Krnavek", + "data" : [ + [ + "Raku", + 2 + ] + ] + }, + { + "id" : "Jorg Sommrey", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Jorg Sommrey" + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 2 + ] + ], + "name" : "Laurent Rosenfeld", + "id" : "Laurent Rosenfeld" + }, + { + "id" : "Lubos Kolouch", + "name" : "Lubos Kolouch", + "data" : [ + [ + "Perl", + 2 + ] + ] + }, + { + "data" : [ + [ + "Raku", + 2 + ], + [ + "Blog", + 9 + ] + ], + "name" : "Luca Ferrari", + "id" : "Luca Ferrari" + }, + { + "id" : "Mark Anderson", + "data" : [ + [ + "Raku", + 2 + ] + ], + "name" : "Mark Anderson" + }, + { + "id" : "Matthew Neleigh", + "name" : "Matthew Neleigh", + "data" : [ + [ + "Perl", + 2 + ] + ] + }, + { + "id" : "Matthias Muth", + "name" : "Matthias Muth", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ] + }, + { + "name" : "Nelo Tovar", + "data" : [ + [ + "Perl", + 2 + ] + ], + "id" : "Nelo Tovar" + }, + { + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "Niels van Dijke", + "id" : "Niels van Dijke" + }, + { + "id" : "Packy Anderson", + "name" : "Packy Anderson", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ] + }, + { + "id" : "Peter Campbell Smith", + "name" : "Peter Campbell Smith", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ] + }, + { + "id" : "Peter Meszaros", + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "Peter Meszaros" + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Reinier Maliepaard", + "id" : "Reinier Maliepaard" + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Robbie Hatley", + "id" : "Robbie Hatley" + }, + { + "id" : "Robert Ransbottom", + "data" : [ + [ + "Raku", + 2 + ] + ], + "name" : "Robert Ransbottom" + }, + { + "name" : "Roger Bell_West", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Roger Bell_West" + }, + { + "name" : "Simon Green", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Simon Green" + }, + { + "id" : "Thomas Kohler", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 2 + ] + ], + "name" : "Thomas Kohler" + }, + { + "id" : "Ulrich Rieke", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ] + ], + "name" : "Ulrich Rieke" + }, + { + "id" : "W. Luis Mochan", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "W. Luis Mochan" + } + ] + }, + "series" : [ + { + "colorByPoint" : 1, + "name" : "The Weekly Challenge - 268", + "data" : [ + { + "name" : "Ali Moradi", + "drilldown" : "Ali Moradi", + "y" : 3 + }, + { + "drilldown" : "Andrew Shitov", + "y" : 2, + "name" : "Andrew Shitov" + }, + { + "y" : 3, + "drilldown" : "Arne Sommer", + "name" : "Arne Sommer" + }, + { + "name" : "Asher Harvey-Smith", + "drilldown" : "Asher Harvey-Smith", + "y" : 2 + }, + { + "y" : 4, + "drilldown" : "Athanasius", + "name" : "Athanasius" + }, + { + "y" : 1, + "drilldown" : "BarrOff", + "name" : "BarrOff" + }, + { + "name" : "Bob Lied", + "y" : 3, + "drilldown" : "Bob Lied" + }, + { + "y" : 2, + "drilldown" : "Bruce Gray", + "name" : "Bruce Gray" + }, + { + "name" : "Dave Jacoby", + "y" : 2, + "drilldown" : "Dave Jacoby" + }, + { + "name" : "David Ferrone", + "y" : 2, + "drilldown" : "David Ferrone" + }, + { + "drilldown" : "E. Choroba", + "y" : 2, + "name" : "E. Choroba" + }, + { + "name" : "Feng Chang", + "drilldown" : "Feng Chang", + "y" : 2 + }, + { + "name" : "Jaldhar H. Vyas", + "y" : 5, + "drilldown" : "Jaldhar H. Vyas" + }, + { + "drilldown" : "Jan Krnavek", + "y" : 2, + "name" : "Jan Krnavek" + }, + { + "name" : "Jorg Sommrey", + "drilldown" : "Jorg Sommrey", + "y" : 3 + }, + { + "name" : "Laurent Rosenfeld", + "drilldown" : "Laurent Rosenfeld", + "y" : 6 + }, + { + "name" : "Lubos Kolouch", + "drilldown" : "Lubos Kolouch", + "y" : 2 + }, + { + "name" : "Luca Ferrari", + "y" : 11, + "drilldown" : "Luca Ferrari" + }, + { + "y" : 2, + "drilldown" : "Mark Anderson", + "name" : "Mark Anderson" + }, + { + "name" : "Matthew Neleigh", + "y" : 2, + "drilldown" : "Matthew Neleigh" + }, + { + "drilldown" : "Matthias Muth", + "y" : 3, + "name" : "Matthias Muth" + }, + { + "drilldown" : "Nelo Tovar", + "y" : 2, + "name" : "Nelo Tovar" + }, + { + "drilldown" : "Niels van Dijke", + "y" : 2, + "name" : "Niels van Dijke" + }, + { + "name" : "Packy Anderson", + "y" : 5, + "drilldown" : "Packy Anderson" + }, + { + "drilldown" : "Peter Campbell Smith", + "y" : 3, + "name" : "Peter Campbell Smith" + }, + { + "drilldown" : "Peter Meszaros", + "y" : 2, + "name" : "Peter Meszaros" + }, + { + "y" : 3, + "drilldown" : "Reinier Maliepaard", + "name" : "Reinier Maliepaard" + }, + { + "y" : 3, + "drilldown" : "Robbie Hatley", + "name" : "Robbie Hatley" + }, + { + "y" : 2, + "drilldown" : "Robert Ransbottom", + "name" : "Robert Ransbottom" + }, + { + "name" : "Roger Bell_West", + "y" : 5, + "drilldown" : "Roger Bell_West" + }, + { + "name" : "Simon Green", + "drilldown" : "Simon Green", + "y" : 3 + }, + { + "name" : "Thomas Kohler", + "y" : 4, + "drilldown" : "Thomas Kohler" + }, + { + "y" : 4, + "drilldown" : "Ulrich Rieke", + "name" : "Ulrich Rieke" + }, + { + "name" : "W. Luis Mochan", + "y" : 3, + "drilldown" : "W. Luis Mochan" + } + ] + } + ], + "subtitle" : { + "text" : "[Champions: 34] Last updated at 2024-05-14 13:16:13 GMT" + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "chart" : { + "type" : "column" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + } + } + }, + "xAxis" : { + "type" : "category" + }, + "legend" : { + "enabled" : 0 + }, + "title" : { + "text" : "The Weekly Challenge - 268" + }, + "tooltip" : { + "headerFormat" : "{series.name}
", + "followPointer" : 1, + "pointFormat" : "{point.name}: {point.y:f}
" + } +} diff --git a/stats/pwc-current.json b/stats/pwc-current.json index 4a5e920c66..260f51d038 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,38 +1,9 @@ { - "title" : { - "text" : "The Weekly Challenge - 268" - }, - "legend" : { - "enabled" : 0 - }, "drilldown" : { "series" : [ - { - "name" : "Ali Moradi", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ], - "id" : "Ali Moradi" - }, - { - "id" : "Andrew Shitov", - "data" : [ - [ - "Raku", - 2 - ] - ], - "name" : "Andrew Shitov" - }, { "name" : "Arne Sommer", + "id" : "Arne Sommer", "data" : [ [ "Raku", @@ -42,8 +13,7 @@ "Blog", 1 ] - ], - "id" : "Arne Sommer" + ] }, { "data" : [ @@ -56,62 +26,14 @@ "name" : "Asher Harvey-Smith" }, { - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 2 - ] - ], - "id" : "Athanasius", - "name" : "Athanasius" - }, - { - "data" : [ - [ - "Raku", - 1 - ] - ], - "id" : "BarrOff", - "name" : "BarrOff" - }, - { - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ], - "id" : "Bob Lied", - "name" : "Bob Lied" - }, - { - "name" : "Bruce Gray", - "id" : "Bruce Gray", - "data" : [ - [ - "Raku", - 2 - ] - ] - }, - { + "id" : "Dave Jacoby", "name" : "Dave Jacoby", "data" : [ [ "Perl", 2 ] - ], - "id" : "Dave Jacoby" + ] }, { "data" : [ @@ -120,71 +42,29 @@ 2 ] ], - "id" : "David Ferrone", - "name" : "David Ferrone" + "name" : "David Ferrone", + "id" : "David Ferrone" }, { "name" : "E. Choroba", + "id" : "E. Choroba", "data" : [ [ "Perl", 2 ] - ], - "id" : "E. Choroba" + ] }, { - "data" : [ - [ - "Raku", - 2 - ] - ], + "name" : "Feng Chang", "id" : "Feng Chang", - "name" : "Feng Chang" - }, - { - "name" : "Jaldhar H. Vyas", - "id" : "Jaldhar H. Vyas", "data" : [ - [ - "Perl", - 2 - ], [ "Raku", 2 - ], - [ - "Blog", - 1 ] ] }, - { - "id" : "Jan Krnavek", - "data" : [ - [ - "Raku", - 2 - ] - ], - "name" : "Jan Krnavek" - }, - { - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ], - "id" : "Jorg Sommrey", - "name" : "Jorg Sommrey" - }, { "data" : [ [ @@ -200,36 +80,12 @@ 2 ] ], - "id" : "Laurent Rosenfeld", - "name" : "Laurent Rosenfeld" - }, - { - "name" : "Luca Ferrari", - "id" : "Luca Ferrari", - "data" : [ - [ - "Raku", - 2 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "name" : "Mark Anderson", - "id" : "Mark Anderson", - "data" : [ - [ - "Raku", - 2 - ] - ] + "name" : "Laurent Rosenfeld", + "id" : "Laurent Rosenfeld" }, { - "name" : "Matthew Neleigh", - "id" : "Matthew Neleigh", + "id" : "Lubos Kolouch", + "name" : "Lubos Kolouch", "data" : [ [ "Perl", @@ -238,32 +94,18 @@ ] }, { - "name" : "Matthias Muth", "data" : [ [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ], - "id" : "Matthias Muth" - }, - { - "name" : "Nelo Tovar", - "data" : [ - [ - "Perl", + "Raku", 2 ] ], - "id" : "Nelo Tovar" + "name" : "Mark Anderson", + "id" : "Mark Anderson" }, { - "name" : "Niels van Dijke", "id" : "Niels van Dijke", + "name" : "Niels van Dijke", "data" : [ [ "Perl", @@ -272,24 +114,8 @@ ] }, { - "name" : "Packy Anderson", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 2 - ], - [ - "Blog", - 1 - ] - ], - "id" : "Packy Anderson" - }, - { + "name" : "Peter Campbell Smith", + "id" : "Peter Campbell Smith", "data" : [ [ "Perl", @@ -299,37 +125,21 @