From a2f0218d62b74adbb34a0330c25f9f4efaa50bd4 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Wed, 31 Jan 2024 13:40:24 +0000 Subject: - Added solutions by Ulrich Rieke. - Added solutions by Eric Cheung. - Added solutions by Laurent Rosenfeld. - Added solutions by E. Choroba. - Added solutions by Niels van Dijke. - Added solutions by Luca Ferrari. - Added solutions by Mark Anderson. - Added solutions by Stephen G Lynn. - Added solutions by Peter Meszaros. - Added solutions by Thomas Kohler. - Added solutions by W. Luis Mochan. - Added solutions by David Ferrone. - Added solutions by Steven Wilson. - Added solutions by Dave Jacoby. - Added solutions by Robbie Hatley. - Added solutions by Peter Campbell Smith. - Added solutions by Arne Sommer. - Added solutions by PokGoPun. - Added solutions by Roger Bell_West. --- challenge-254/eric-cheung/python/ch-1.py | 13 + challenge-254/eric-cheung/python/ch-2.py | 24 + challenge-254/laurent-rosenfeld/blog.txt | 1 + challenge-254/laurent-rosenfeld/blog1.txt | 1 + challenge-254/laurent-rosenfeld/perl/ch-1.pl | 13 + challenge-254/laurent-rosenfeld/perl/ch-2.pl | 14 + challenge-254/laurent-rosenfeld/raku/ch-1.raku | 7 + challenge-254/laurent-rosenfeld/raku/ch-2.raku | 10 + challenge-254/perlboy1967/perl/ch-1.pl | 36 + challenge-254/perlboy1967/perl/ch-2.pl | 36 + challenge-254/perlboy1967/perl/ch1.pl | 36 - challenge-254/perlboy1967/perl/ch2.pl | 36 - challenge-254/steven-wilson/python/ch-01.py | 24 - challenge-254/steven-wilson/python/ch-02.py | 40 - challenge-254/steven-wilson/python/ch-1.py | 24 + challenge-254/steven-wilson/python/ch-2.py | 40 + challenge-254/ulrich-rieke/cpp/ch-1.cpp | 15 + challenge-254/ulrich-rieke/cpp/ch-2.cpp | 35 + challenge-254/ulrich-rieke/haskell/ch-1.hs | 11 + challenge-254/ulrich-rieke/haskell/ch-2.hs | 25 + challenge-254/ulrich-rieke/perl/ch-1.pl | 17 + challenge-254/ulrich-rieke/perl/ch-2.pl | 32 + challenge-254/ulrich-rieke/raku/ch-1.raku | 8 + challenge-254/ulrich-rieke/raku/ch-2.raku | 25 + challenge-254/ulrich-rieke/rust/ch-1.rs | 12 + challenge-254/ulrich-rieke/rust/ch-2.rs | 32 + stats/pwc-challenge-253.json | 665 ++ stats/pwc-current.json | 597 +- stats/pwc-language-breakdown-summary.json | 66 +- stats/pwc-language-breakdown.json | 9985 ++++++++++++------------ stats/pwc-leaders.json | 812 +- stats/pwc-summary-1-30.json | 114 +- stats/pwc-summary-121-150.json | 34 +- stats/pwc-summary-151-180.json | 118 +- stats/pwc-summary-181-210.json | 56 +- stats/pwc-summary-211-240.json | 122 +- stats/pwc-summary-241-270.json | 36 +- stats/pwc-summary-271-300.json | 128 +- stats/pwc-summary-301-330.json | 48 +- stats/pwc-summary-31-60.json | 102 +- stats/pwc-summary-61-90.json | 48 +- stats/pwc-summary-91-120.json | 98 +- stats/pwc-summary.json | 1908 ++--- 43 files changed, 8079 insertions(+), 7425 deletions(-) create mode 100755 challenge-254/eric-cheung/python/ch-1.py create mode 100755 challenge-254/eric-cheung/python/ch-2.py create mode 100644 challenge-254/laurent-rosenfeld/blog.txt create mode 100644 challenge-254/laurent-rosenfeld/blog1.txt create mode 100644 challenge-254/laurent-rosenfeld/perl/ch-1.pl create mode 100644 challenge-254/laurent-rosenfeld/perl/ch-2.pl create mode 100644 challenge-254/laurent-rosenfeld/raku/ch-1.raku create mode 100644 challenge-254/laurent-rosenfeld/raku/ch-2.raku create mode 100755 challenge-254/perlboy1967/perl/ch-1.pl create mode 100755 challenge-254/perlboy1967/perl/ch-2.pl delete mode 100755 challenge-254/perlboy1967/perl/ch1.pl delete mode 100755 challenge-254/perlboy1967/perl/ch2.pl delete mode 100644 challenge-254/steven-wilson/python/ch-01.py delete mode 100644 challenge-254/steven-wilson/python/ch-02.py create mode 100644 challenge-254/steven-wilson/python/ch-1.py create mode 100644 challenge-254/steven-wilson/python/ch-2.py create mode 100755 challenge-254/ulrich-rieke/cpp/ch-1.cpp create mode 100755 challenge-254/ulrich-rieke/cpp/ch-2.cpp create mode 100755 challenge-254/ulrich-rieke/haskell/ch-1.hs create mode 100755 challenge-254/ulrich-rieke/haskell/ch-2.hs create mode 100755 challenge-254/ulrich-rieke/perl/ch-1.pl create mode 100755 challenge-254/ulrich-rieke/perl/ch-2.pl create mode 100755 challenge-254/ulrich-rieke/raku/ch-1.raku create mode 100755 challenge-254/ulrich-rieke/raku/ch-2.raku create mode 100755 challenge-254/ulrich-rieke/rust/ch-1.rs create mode 100755 challenge-254/ulrich-rieke/rust/ch-2.rs create mode 100644 stats/pwc-challenge-253.json diff --git a/challenge-254/eric-cheung/python/ch-1.py b/challenge-254/eric-cheung/python/ch-1.py new file mode 100755 index 0000000000..3a08de1539 --- /dev/null +++ b/challenge-254/eric-cheung/python/ch-1.py @@ -0,0 +1,13 @@ + +import math + +## nInput = 27 ## Example 1 +## nInput = 0 ## Example 2 +nInput = 6 ## Example 3 + +dCubicRoot = nInput ** (1. / 3.) + +if dCubicRoot - int(dCubicRoot) > 0: + print (False) +else: + print (True) diff --git a/challenge-254/eric-cheung/python/ch-2.py b/challenge-254/eric-cheung/python/ch-2.py new file mode 100755 index 0000000000..e1a9c3c14f --- /dev/null +++ b/challenge-254/eric-cheung/python/ch-2.py @@ -0,0 +1,24 @@ + +## Reference +## https://www.w3resource.com/python-exercises/basic/python-basic-1-exercise-71.php +## https://www.geeksforgeeks.org/reverse-vowels-given-string/ + +## strInput = "Raku" ## Example 1 +## strInput = "Perl" ## Example 2 +## strInput = "Julia" ## Example 3 +strInput = "Uiua" ## Example 4 + +arrVowel = [charLoop for charLoop in strInput.lower() if charLoop in ["a", "e", "i", "o", "u"]] + +strOutput = "" + +for nIndx, charLoop in enumerate(strInput.lower()): + if charLoop in ["a", "e", "i", "o", "u"]: + strOutput = strOutput + arrVowel[-1] + del arrVowel[-1] + else: + strOutput = strOutput + charLoop + +strOutput = strOutput.title() + +print (strOutput) diff --git a/challenge-254/laurent-rosenfeld/blog.txt b/challenge-254/laurent-rosenfeld/blog.txt new file mode 100644 index 0000000000..f05728e0e4 --- /dev/null +++ b/challenge-254/laurent-rosenfeld/blog.txt @@ -0,0 +1 @@ +https://blogs.perl.org/users/laurent_r/2024/01/perl-weekly-challenge-254-three-power.html diff --git a/challenge-254/laurent-rosenfeld/blog1.txt b/challenge-254/laurent-rosenfeld/blog1.txt new file mode 100644 index 0000000000..07591b34b0 --- /dev/null +++ b/challenge-254/laurent-rosenfeld/blog1.txt @@ -0,0 +1 @@ +https://blogs.perl.org/users/laurent_r/2024/01/perl-weekly-challenge-254-reverse-vowels.html diff --git a/challenge-254/laurent-rosenfeld/perl/ch-1.pl b/challenge-254/laurent-rosenfeld/perl/ch-1.pl new file mode 100644 index 0000000000..a53e4bf876 --- /dev/null +++ b/challenge-254/laurent-rosenfeld/perl/ch-1.pl @@ -0,0 +1,13 @@ +use strict; +use warnings; +use feature 'say'; + +sub exp_three { + my $in = shift; + return "true" if $in == 0; + my $exp = int (log $in / log 3); + return (3 ** $exp == $in or 3 ** ($exp + 1) == $in) + ? "true" : "false"; +} + +say "$_ \t=> ", exp_three $_ for qw<27 26 0 6>; diff --git a/challenge-254/laurent-rosenfeld/perl/ch-2.pl b/challenge-254/laurent-rosenfeld/perl/ch-2.pl new file mode 100644 index 0000000000..0070411d99 --- /dev/null +++ b/challenge-254/laurent-rosenfeld/perl/ch-2.pl @@ -0,0 +1,14 @@ +use strict; +use warnings; +use feature 'say'; + +sub reverse_vowels { + my $str = lc shift; + my @vowels = $str =~ /[aeiou]/g; + $str =~ s/[aeiou]/pop @vowels/ge; + return ucfirst $str; +} + +for my $test (qw ) { + say "$test \t => ", reverse_vowels $test; +} diff --git a/challenge-254/laurent-rosenfeld/raku/ch-1.raku b/challenge-254/laurent-rosenfeld/raku/ch-1.raku new file mode 100644 index 0000000000..48844631b2 --- /dev/null +++ b/challenge-254/laurent-rosenfeld/raku/ch-1.raku @@ -0,0 +1,7 @@ +sub exp-three ($in) { + return True if $in == 0; + my $exp = (log $in, 3).Int; + return (3 ** $exp == $in or 3 ** ($exp + 1) == $in); +} + +say "$_ \t=> ", exp-three $_ for <27 26 0 6>; diff --git a/challenge-254/laurent-rosenfeld/raku/ch-2.raku b/challenge-254/laurent-rosenfeld/raku/ch-2.raku new file mode 100644 index 0000000000..213a7bf11e --- /dev/null +++ b/challenge-254/laurent-rosenfeld/raku/ch-2.raku @@ -0,0 +1,10 @@ +sub reverse-vowels ($in) { + my $str = $in.lc; + my @vowels = map { .Str }, $str ~~ m:g/<[aeiou]>/; + $str ~~ s:g/<[aeiou]>/{pop @vowels}/; + return $str.tc; +} + +for -> $test { + say "$test \t => ", reverse-vowels $test; +} diff --git a/challenge-254/perlboy1967/perl/ch-1.pl b/challenge-254/perlboy1967/perl/ch-1.pl new file mode 100755 index 0000000000..68c055158f --- /dev/null +++ b/challenge-254/perlboy1967/perl/ch-1.pl @@ -0,0 +1,36 @@ +#!/bin/perl + +=pod + +The Weekly Challenge - 254 +- https://theweeklychallenge.org/blog/perl-weekly-challenge-254 + +Author: Niels 'PerlBoy' van Dijke + +Task 1: Three Power +Submitted by: Mohammad S Anwar + +You are given a positive integer, $n. + +Write a script to return true if the given integer is a power of three otherwise return false. + +=cut + +use v5.32; +use feature qw(signatures); +use common::sense; + +use Test2::V0; + +sub isPowerN ($n,$base) { + return 1 if $n == 0; + my $r = $n ** (1/$base); + $r =~ m#^\d+$# ? 1 : 0; +} + + +is(isPowerN($_,3),1,"isPowerN($_,3) == 1") for (0,1,8,27,64); +is(isPowerN($_,3),0,"isPowerN($_,3) == 0") for (2,7,9,26,28,63,65); +is(isPowerN($_,5),1,"isPowerN($_,5) == 1") for (1,32,243); + +done_testing; diff --git a/challenge-254/perlboy1967/perl/ch-2.pl b/challenge-254/perlboy1967/perl/ch-2.pl new file mode 100755 index 0000000000..2af8efbfb6 --- /dev/null +++ b/challenge-254/perlboy1967/perl/ch-2.pl @@ -0,0 +1,36 @@ +#!/bin/perl + +=pod + +The Weekly Challenge - 254 +- https://theweeklychallenge.org/blog/perl-weekly-challenge-254 + +Author: Niels 'PerlBoy' van Dijke + +Task 2: Reverse Vowels +Submitted by: Mohammad S Anwar + +You are given a string, $s. + +Write a script to reverse all the vowels (a, e, i, o, u) in the given string. + +=cut + +use v5.32; +use feature qw(signatures); +use common::sense; + +use Test2::V0; + +sub reverseVowels ($str) { + my @v = $str =~ m/(?i)[aeiou]/g; + ucfirst lc $str =~ s/(?i)[aeiou]/pop @v/egr; +} + + +is(reverseVowels('Raku'),'Ruka'); +is(reverseVowels('Perl'),'Perl'); +is(reverseVowels('Julia'),'Jaliu'); +is(reverseVowels('Uiua'),'Auiu'); + +done_testing; diff --git a/challenge-254/perlboy1967/perl/ch1.pl b/challenge-254/perlboy1967/perl/ch1.pl deleted file mode 100755 index 68c055158f..0000000000 --- a/challenge-254/perlboy1967/perl/ch1.pl +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/perl - -=pod - -The Weekly Challenge - 254 -- https://theweeklychallenge.org/blog/perl-weekly-challenge-254 - -Author: Niels 'PerlBoy' van Dijke - -Task 1: Three Power -Submitted by: Mohammad S Anwar - -You are given a positive integer, $n. - -Write a script to return true if the given integer is a power of three otherwise return false. - -=cut - -use v5.32; -use feature qw(signatures); -use common::sense; - -use Test2::V0; - -sub isPowerN ($n,$base) { - return 1 if $n == 0; - my $r = $n ** (1/$base); - $r =~ m#^\d+$# ? 1 : 0; -} - - -is(isPowerN($_,3),1,"isPowerN($_,3) == 1") for (0,1,8,27,64); -is(isPowerN($_,3),0,"isPowerN($_,3) == 0") for (2,7,9,26,28,63,65); -is(isPowerN($_,5),1,"isPowerN($_,5) == 1") for (1,32,243); - -done_testing; diff --git a/challenge-254/perlboy1967/perl/ch2.pl b/challenge-254/perlboy1967/perl/ch2.pl deleted file mode 100755 index 2af8efbfb6..0000000000 --- a/challenge-254/perlboy1967/perl/ch2.pl +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/perl - -=pod - -The Weekly Challenge - 254 -- https://theweeklychallenge.org/blog/perl-weekly-challenge-254 - -Author: Niels 'PerlBoy' van Dijke - -Task 2: Reverse Vowels -Submitted by: Mohammad S Anwar - -You are given a string, $s. - -Write a script to reverse all the vowels (a, e, i, o, u) in the given string. - -=cut - -use v5.32; -use feature qw(signatures); -use common::sense; - -use Test2::V0; - -sub reverseVowels ($str) { - my @v = $str =~ m/(?i)[aeiou]/g; - ucfirst lc $str =~ s/(?i)[aeiou]/pop @v/egr; -} - - -is(reverseVowels('Raku'),'Ruka'); -is(reverseVowels('Perl'),'Perl'); -is(reverseVowels('Julia'),'Jaliu'); -is(reverseVowels('Uiua'),'Auiu'); - -done_testing; diff --git a/challenge-254/steven-wilson/python/ch-01.py b/challenge-254/steven-wilson/python/ch-01.py deleted file mode 100644 index 6c51d189e2..0000000000 --- a/challenge-254/steven-wilson/python/ch-01.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env python3 - -import math - - -def is_power_three(number): - ''' Given a positive integer. Returns true if the given integer is a power - of three otherwise returns false. - - >>> is_power_three(27) - True - >>> is_power_three(0) - True - >>> is_power_three(6) - False - ''' - cr = round(math.pow(number, 1/3), 6) - return ((cr - int(cr)) == 0) - - -if __name__ == "__main__": - import doctest - - doctest.testmod() diff --git a/challenge-254/steven-wilson/python/ch-02.py b/challenge-254/steven-wilson/python/ch-02.py deleted file mode 100644 index 9a9fc09f62..0000000000 --- a/challenge-254/steven-wilson/python/ch-02.py +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env python3 - - -VOWELS = set('aeiou') - - -def reverse_vowels(string): - ''' Given a string reverse all the vowels (a, e, i, o, u) and return - resulting string. - - >>> reverse_vowels('Raku') - 'Ruka' - >>> reverse_vowels('Perl') - 'Perl' - >>> reverse_vowels('Julia') - 'Jaliu' - >>> reverse_vowels('Uiua') - 'Auiu' - ''' - string = string.lower() - indexes = [] - cs = [] - for index, c in enumerate(string): - if c in VOWELS: - indexes.append(index) - cs.append(c) - - if len(indexes) < 2: - return string.title() - else: - characters = list(string) - for index in indexes: - characters[index] = cs.pop() - return ''.join(characters).title() - - -if __name__ == "__main__": - import doctest - - doctest.testmod() diff --git a/challenge-254/steven-wilson/python/ch-1.py b/challenge-254/steven-wilson/python/ch-1.py new file mode 100644 index 0000000000..6c51d189e2 --- /dev/null +++ b/challenge-254/steven-wilson/python/ch-1.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python3 + +import math + + +def is_power_three(number): + ''' Given a positive integer. Returns true if the given integer is a power + of three otherwise returns false. + + >>> is_power_three(27) + True + >>> is_power_three(0) + True + >>> is_power_three(6) + False + ''' + cr = round(math.pow(number, 1/3), 6) + return ((cr - int(cr)) == 0) + + +if __name__ == "__main__": + import doctest + + doctest.testmod() diff --git a/challenge-254/steven-wilson/python/ch-2.py b/challenge-254/steven-wilson/python/ch-2.py new file mode 100644 index 0000000000..9a9fc09f62 --- /dev/null +++ b/challenge-254/steven-wilson/python/ch-2.py @@ -0,0 +1,40 @@ +#!/usr/bin/env python3 + + +VOWELS = set('aeiou') + + +def reverse_vowels(string): + ''' Given a string reverse all the vowels (a, e, i, o, u) and return + resulting string. + + >>> reverse_vowels('Raku') + 'Ruka' + >>> reverse_vowels('Perl') + 'Perl' + >>> reverse_vowels('Julia') + 'Jaliu' + >>> reverse_vowels('Uiua') + 'Auiu' + ''' + string = string.lower() + indexes = [] + cs = [] + for index, c in enumerate(string): + if c in VOWELS: + indexes.append(index) + cs.append(c) + + if len(indexes) < 2: + return string.title() + else: + characters = list(string) + for index in indexes: + characters[index] = cs.pop() + return ''.join(characters).title() + + +if __name__ == "__main__": + import doctest + + doctest.testmod() diff --git a/challenge-254/ulrich-rieke/cpp/ch-1.cpp b/challenge-254/ulrich-rieke/cpp/ch-1.cpp new file mode 100755 index 0000000000..d9cbd68737 --- /dev/null +++ b/challenge-254/ulrich-rieke/cpp/ch-1.cpp @@ -0,0 +1,15 @@ +#include +#include + +int main( ) { + std::cout << "Please enter an integer!\n" ; + int number ; + std::cin >> number ; + double third = 1.0 / 3.0 ; + double cuberoot = std::pow( static_cast(number ) , third ) ; + if ( cuberoot == floor( cuberoot ) ) + std::cout << "true\n" ; + else + std::cout << "false\n" ; + return 0 ; +} diff --git a/challenge-254/ulrich-rieke/cpp/ch-2.cpp b/challenge-254/ulrich-rieke/cpp/ch-2.cpp new file mode 100755 index 0000000000..ed81183edd --- /dev/null +++ b/challenge-254/ulrich-rieke/cpp/ch-2.cpp @@ -0,0 +1,35 @@ +#include +#include +#include +#include +#include + +int main( ) { + std::cout << "Please enter a word!\n" ; + std::string word ; + std::cin >> word ; + std::string vowels {"aeiouAEIOU"} ; + std::list vowels_contained ; + for ( int i = 0 ; i < word.length( ) ; i++ ) { + if ( vowels.find( word.substr( i , 1 ) ) != std::string::npos ) + vowels_contained.push_back( word[ i ] ) ; + } + std::string changed ; + for ( auto c : word ) { + if ( vowels.find( c ) != std::string::npos ) { + char next_one = vowels_contained.back( ) ; + if ( changed.empty( ) ) { + changed.push_back( toupper( next_one ) ) ; + } + else { + changed.push_back( tolower( next_one ) ) ; + } + vowels_contained.pop_back( ) ; + } + else { + changed.push_back( c ) ; + } + } + std::cout << changed << '\n' ; + return 0 ; +} diff --git a/challenge-254/ulrich-rieke/haskell/ch-1.hs b/challenge-254/ulrich-rieke/haskell/ch-1.hs new file mode 100755 index 0000000000..70d47acb53 --- /dev/null +++ b/challenge-254/ulrich-rieke/haskell/ch-1.hs @@ -0,0 +1,11 @@ +module Challenge254 + where +import Data.Ratio + +third :: Ratio Int +third = 1 % 3 + +solution :: Int -> Bool +solution n = ( fromIntegral $ floor cuberoot ) == cuberoot + where + cuberoot = (fromIntegral n ) ** ( realToFrac third ) diff --git a/challenge-254/ulrich-rieke/haskell/ch-2.hs b/challenge-254/ulrich-rieke/haskell/ch-2.hs new file mode 100755 index 0000000000..5334895c62 --- /dev/null +++ b/challenge-254/ulrich-rieke/haskell/ch-2.hs @@ -0,0 +1,25 @@ +module Challenge254_2 + where +import Data.Char( toUpper , toLower ) +import Data.Maybe ( fromJust ) + +vowels :: String +vowels = "aeiouAEIOU" + +solution :: String -> String +solution str = map (\p -> if ( fst p ) == 0 then toUpper $ snd p + else toLower $ snd p ) indexed + where + vowelsContained :: String + vowelsContained = filter (\c -> elem c vowels ) str + reversed :: [(Char , Char)] + reversed = zip vowelsContained ( reverse vowelsContained ) + indexed :: [(Int, Char)] + indexed = map (\(n , c) -> if elem c vowels then ( n , fromJust $ + lookup c reversed ) else ( n , c )) $ zip [0,1..] str + +main :: IO ( ) +main = do + putStrLn "Please enter a word!" + word <- getLine + print $ solution word diff --git a/challenge-254/ulrich-rieke/perl/ch-1.pl b/challenge-254/ulrich-rieke/perl/ch-1.pl new file mode 100755 index 0000000000..b919d0f614 --- /dev/null +++ b/challenge-254/ulrich-rieke/perl/ch-1.pl @@ -0,0 +1,17 @@ +#!/usr/bin/perl ; +use strict ; +use warnings ; +use feature 'say' ; +use POSIX ; + +say "Enter a number!" ; +my $number = ; +chomp $number ; +my $third = 1 / 3 ; +my $cuberoot = $number ** $third ; +if ( $cuberoot == floor( $cuberoot )) { + say "true" ; +} +else { + say "false" ; +} diff --git a/challenge-254/ulrich-rieke/perl/ch-2.pl b/challenge-254/ulrich-rieke/perl/ch-2.pl new file mode 100755 index 0000000000..5c6eb13282 --- /dev/null +++ b/challenge-254/ulrich-rieke/perl/ch-2.pl @@ -0,0 +1,32 @@ +#!/usr/bin/perl ; +use strict ; +use warnings ; +use feature 'say' ; + +say "Enter a word!" ; +my $word = ; +chomp $word ; +my @vowels_contained ; +for my $letter ( split( // , $word ) ) { + if ( $letter =~ /[aeiouAEIOU]/ ) { + push @vowels_contained , $letter ; + } +} +my @changed ; +for my $letter ( split( // , $word ) ) { + if ( $letter =~ /[aeiouAEIOU]/ ) { + my $next_one = pop @vowels_contained ; + if ( @changed ) { + push @changed , lc( $next_one ) ; + } + else { + push @changed , uc( $next_one ) ; + } + } + else { + push @changed , $letter ; + } +} +say join( '' , @changed ) ; + + diff --git a/challenge-254/ulrich-rieke/raku/ch-1.raku b/challenge-254/ulrich-rieke/raku/ch-1.raku new file mode 100755 index 0000000000..1881cc8a66 --- /dev/null +++ b/challenge-254/ulrich-rieke/raku/ch-1.raku @@ -0,0 +1,8 @@ +use v6 ; + +say "Enter a number!" ; +my $line = $*IN.get ; +my $number = $line.Int ; +my $third = FatRat.new( 1 , 3 ) ; +my $cuberoot = $number ** $third ; +say ( $cuberoot == floor( $cuberoot ) ) ; diff --git a/challenge-254/ulrich-rieke/raku/ch-2.raku b/challenge-254/ulrich-rieke/raku/ch-2.raku new file mode 100755 index 0000000000..1ed87a2a26 --- /dev/null +++ b/challenge-254/ulrich-rieke/raku/ch-2.raku @@ -0,0 +1,25 @@ +use v6 ; + +say "Enter a word!" ; +my $word = $*IN.get ; +my @vowels_contained ; +for $word.comb -> $letter { + if ( $letter ~~ /<[aeiouAEIOU]>/ ) { + @vowels_contained.push( $letter ) ; + } +} +my @characters ; +for $word.comb -> $letter { + if ( $letter ~~ /<[aeiouAEIOU]>/ ) { + if ( @characters.elems == 0 ) { + @characters.push( uc( @vowels_contained.pop( ) )) ; + } + else { + @characters.push( lc( @vowels_contained.pop( ) ) ) ; + } + } + else { + @characters.push( $letter ) ; + } +} +say @characters.join ; diff --git a/challenge-254/ulrich-rieke/rust/ch-1.rs b/challenge-254/ulrich-rieke/rust/ch-1.rs new file mode 100755 index 0000000000..5ded9771da --- /dev/null +++ b/challenge-254/ulrich-rieke/rust/ch-1.rs @@ -0,0 +1,12 @@ +use std::io ; + +fn main() { + println!("Enter a positive integer!"); + let mut inline : String = String::new( ) ; + io::stdin( ).read_line( &mut inline ).unwrap( ) ; + let entered_line : &str = &*inline ; + let changed = entered_line.trim( ) ; + let number = changed.parse::( ).unwrap( ) ; + let cuberoot : f32 = (number as f32).cbrt( ) ; + println!("{}" , cuberoot == cuberoot.floor( ) ) ; +} diff --git a/challenge-254/ulrich-rieke/rust/ch-2.rs b/challenge-254/ulrich-rieke/rust/ch-2.rs new file mode 100755 index 0000000000..630ffdb2c6 --- /dev/null +++ b/challenge-254/ulrich-rieke/rust/ch-2.rs @@ -0,0 +1,32 @@ +use std::io ; + +fn main() { + println!("Please enter a string!"); + let mut inline : String = String::new( ) ; + io::stdin( ).read_line( &mut inline ).unwrap( ) ; + let entered_line : &str = &*inline ; + let word = entered_line.trim( ) ; + let vowels : &str = "aeiouAEIOU" ; + let mut vowels_contained : String = String::new( ) ; + for c in word.chars( ) { + if vowels.contains( c ) { + vowels_contained.push( c ) ; + } + } + let mut changed : String = String::new( ) ; + for c in word.chars( ) { + if vowels.contains( c ) { + let next_vowel : char = vowels_contained.pop( ).unwrap( ) ; + if changed.len( ) == 0 { + changed.push_str( &next_vowel.to_uppercase( ).to_string( )) ; + } + else { + changed.push_str( &next_vowel.to_lowercase( ).to_string( ) ) ; + } + } + else { + changed.push( c ) ; + } + } + println!("{:?}" , changed) ; +} diff --git a/stats/pwc-challenge-253.json b/stats/pwc-challenge-253.json new file mode 100644 index 0000000000..fd29ba8a0f --- /dev/null +++ b/stats/pwc-challenge-253.json @@ -0,0 +1,665 @@ +{ + "legend" : { + "enabled" : 0 + }, + "series" : [ + { + "colorByPoint" : 1, + "name" : "The Weekly Challenge - 253", + "data" : [ + { + "drilldown" : "Ali Moradi", + "name" : "Ali Moradi", + "y" : 3 + }, + { + "name" : "Arne Sommer", + "y" : 3, + "drilldown" : "Arne Sommer" + }, + { + "drilldown" : "Athanasius", + "name" : "Athanasius", + "y" : 4 + }, + { + "y" : 2, + "name" : "BarrOff", + "drilldown" : "BarrOff" + }, + { + "drilldown" : "Bob Lied", + "name" : "Bob Lied", + "y" : 2 + }, + { + "drilldown" : "Bruce Gray", + "y" : 2, + "name" : "Bruce Gray" + }, + { + "name" : "Cheok-Yin Fung", + "y" : 2, + "drilldown" : "Cheok-Yin Fung" + }, + { + "drilldown" : "Dave Jacoby", + "name" : "Dave Jacoby", + "y" : 3 + }, + { + "drilldown" : "David Ferrone", + "name" : "David Ferrone", + "y" : 2 + }, + { + "name" : "E. Choroba", + "y" : 2, + "drilldown" : "E. Choroba" + }, + { + "name" : "Jaldhar H. Vyas", + "y" : 5, + "drilldown" : "Jaldhar H. Vyas" + }, + { + "drilldown" : "Jan Krnavek", + "name" : "Jan Krnavek", + "y" : 2 + }, + { + "name" : "Jorg Sommrey", + "y" : 3, + "drilldown" : "Jorg Sommrey" + }, + { + "drilldown" : "Laurent Rosenfeld", + "y" : 6, + "name" : "Laurent Rosenfeld" + }, + { + "drilldown" : "Lubos Kolouch", + "y" : 4, + "name" : "Lubos Kolouch" + }, + { + "y" : 11, + "name" : "Luca Ferrari", + "drilldown" : "Luca Ferrari" + }, + { + "drilldown" : "Mariano Spadaccini", + "y" : 2, + "name" : "Mariano Spadaccini" + }, + { + "drilldown" : "Mark Anderson", + "name" : "Mark Anderson", + "y" : 2 + }, + { + "drilldown" : "Matthew Neleigh", + "name" : "Matthew Neleigh", + "y" : 2 + }, + { + "drilldown" : "Mustafa Aydin", + "y" : 2, + "name" : "Mustafa Aydin" + }, + { + "drilldown" : "Nelo Tovar", + "y" : 2, + "name" : "Nelo Tovar" + }, + { + "name" : "Niels van Dijke", + "y" : 2, + "drilldown" : "Niels van Dijke" + }, + { + "drilldown" : "Packy Anderson", + "y" : 5, + "name" : "Packy Anderson" + }, + { + "drilldown" : "Peter Campbell Smith", + "name" : "Peter Campbell Smith", + "y" : 3 + }, + { + "y" : 2, + "name" : "Peter Meszaros", + "drilldown" : "Peter Meszaros" + }, + { + "drilldown" : "Robbie Hatley", + "y" : 3, + "name" : "Robbie Hatley" + }, + { + "y" : 2, + "name" : "Robert Ransbottom", + "drilldown" : "Robert Ransbottom" + }, + { + "drilldown" : "Roger Bell_West", + "y" : 5, + "name" : "Roger Bell_West" + }, + { + "drilldown" : "Simon Green", + "y" : 3, + "name" : "Simon Green" + }, + { + "name" : "Simon Proctor", + "y" : 1, + "drilldown" : "Simon Proctor" + }, + { + "y" : 3, + "name" : "Stephen G. Lynn", + "drilldown" : "Stephen G. Lynn" + }, + { + "drilldown" : "Thomas Kohler", + "y" : 4, + "name" : "Thomas Kohler" + }, + { + "drilldown" : "Ulrich Rieke", + "y" : 3, + "name" : "Ulrich Rieke" + }, + { + "drilldown" : "W. Luis Mochan", + "y" : 3, + "name" : "W. Luis Mochan" + }, + { + "drilldown" : "Wanderdoc", + "y" : 2, + "name" : "Wanderdoc" + } + ] + } + ], + "drilldown" : { + "series" : [ + { + "id" : "Ali Moradi", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Ali Moradi" + }, + { + "data" : [ + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Arne Sommer", + "id" : "Arne Sommer" + }, + { + "id" : "Athanasius", + "name" : "Athanasius", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ] + ] + }, + { + "id" : "BarrOff", + "name" : "BarrOff", + "data" : [ + [ + "Perl", + 1 + ], + [ + "Raku", + 1 + ] + ] + }, + { + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "Bob Lied", + "id" : "Bob Lied" + }, + { + "id" : "Bruce Gray", + "data" : [ + [ + "Raku", + 2 + ] + ], + "name" : "Bruce Gray" + }, + { + "id" : "Cheok-Yin Fung", + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "Cheok-Yin Fung" + }, + { + "id" : "Dave Jacoby", + "name" : "Dave Jacoby", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ] + }, + { + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "David Ferrone", + "id" : "David Ferrone" + }, + { + "name" : "E. Choroba", + "data" : [ + [ + "Perl", + 2 + ] + ], + "id" : "E. Choroba" + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Jaldhar H. Vyas", + "id" : "Jaldhar H. Vyas" + }, + { + "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", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ] + ], + "name" : "Lubos Kolouch" + }, + { + "data" : [ + [ + "Raku", + 2 + ], + [ + "Blog", + 9 + ] + ], + "name" : "Luca Ferrari", + "id" : "Luca Ferrari" + }, + { + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "Mariano Spadaccini", + "id" : "Mariano Spadaccini" + }, + { + "id" : "Mark Anderson", + "data" : [ + [ + "Raku", + 2 + ] + ], + "name" : "Mark Anderson" + }, + { + "name" : "Matthew Neleigh", + "data" : [ + [ + "Perl", + 2 + ] + ], + "id" : "Matthew Neleigh" + }, + { + "id" : "Mustafa Aydin", + "name" : "Mustafa Aydin", + "data" : [ + [ + "Raku", + 2 + ] + ] + }, + { + "name" : "Nelo Tovar", + "data" : [ + [ + "Perl", + 2 + ] + ], + "id" : "Nelo Tovar" + }, + { + "id" : "Niels van Dijke", + "name" : "Niels van Dijke", + "data" : [ + [ + "Perl", + 2 + ] + ] + }, + { + "id" : "Packy Anderson", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Packy Anderson" + }, + { + "id" : "Peter Campbell Smith", + "name" : "Peter Campbell Smith", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ] + }, + { + "id" : "Peter Meszaros", + "name" : "Peter Meszaros", + "data" : [ + [ + "Perl", + 2 + ] + ] + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Robbie Hatley", + "id" : "Robbie Hatley" + }, + { + "id" : "Robert Ransbottom", + "name" : "Robert Ransbottom", + "data" : [ + [ + "Raku", + 2 + ] + ] + }, + { + "id" : "Roger Bell_West", + "name" : "Roger Bell_West", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ] + }, + { + "id" : "Simon Green", + "name" : "Simon Green", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ] + }, + { + "name" : "Simon Proctor", + "data" : [ + [ + "Raku", + 1 + ] + ], + "id" : "Simon Proctor" + }, + { + "id" : "Stephen G. Lynn", + "name" : "Stephen G. Lynn", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ] + }, + { + "id" : "Thomas Kohler", + "name" : "Thomas Kohler", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 2 + ] + ] + }, + { + "name" : "Ulrich Rieke", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 1 + ] + ], + "id" : "Ulrich Rieke" + }, + { + "name" : "W. Luis Mochan", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "W. Luis Mochan" + }, + { + "id" : "Wanderdoc", + "name" : "Wanderdoc", + "data" : [ + [ + "Perl", + 2 + ] + ] + } + ] + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "chart" : { + "type" : "column" + }, + "subtitle" : { + "text" : "[Champions: 35] Last updated at 2024-01-31 13:33:06 GMT" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + } + } + }, + "xAxis" : { + "type" : "category" + }, + "title" : { + "text" : "The Weekly Challenge - 253" + }, + "tooltip" : { + "followPointer" : 1, + "pointFormat" : "{point.name}: {point.y:f}
", + "headerFormat" : "{series.name}
" + } +} diff --git a/stats/pwc-current.json b/stats/pwc-current.json index b05aafebf6..c75229d189 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,25 +1,114 @@ { + "xAxis" : { + "type" : "category" + }, + "chart" : { + "type" : "column" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + } + } + }, + "series" : [ + { + "data" : [ + { + "y" : 3, + "drilldown" : "Arne Sommer", + "name" : "Arne Sommer" + }, + { + "y" : 3, + "name" : "Dave Jacoby", + "drilldown" : "Dave Jacoby" + }, + { + "name" : "David Ferrone", + "drilldown" : "David Ferrone", + "y" : 2 + }, + { + "y" : 2, + "name" : "E. Choroba", + "drilldown" : "E. Choroba" + }, + { + "drilldown" : "Laurent Rosenfeld", + "name" : "Laurent Rosenfeld", + "y" : 6 + }, + { + "y" : 11, + "name" : "Luca Ferrari", + "drilldown" : "Luca Ferrari" + }, + { + "drilldown" : "Mark Anderson", + "name" : "Mark Anderson", + "y" : 2 + }, + { + "y" : 2, + "name" : "Niels van Dijke", + "drilldown" : "Niels van Dijke" + }, + { + "name" : "Peter Campbell Smith", + "drilldown" : "Peter Campbell Smith", + "y" : 3 + }, + { + "name" : "Peter Meszaros", + "drilldown" : "Peter Meszaros", + "y" : 2 + }, + { + "drilldown" : "Robbie Hatley", + "name" : "Robbie Hatley", + "y" : 3 + }, + { + "y" : 4, + "name" : "Roger Bell_West", + "drilldown" : "Roger Bell_West" + }, + { + "y" : 3, + "name" : "Stephen G. Lynn", + "drilldown" : "Stephen G. Lynn" + }, + { + "y" : 4, + "name" : "Thomas Kohler", + "drilldown" : "Thomas Kohler" + }, + { + "name" : "Ulrich Rieke", + "drilldown" : "Ulrich Rieke", + "y" : 4 + }, + { + "name" : "W. Luis Mochan", + "drilldown" : "W. Luis Mochan", + "y" : 3 + } + ], + "colorByPoint" : 1, + "name" : "The Weekly Challenge - 254" + } + ], "tooltip" : { + "followPointer" : 1, "pointFormat" : "{point.name}: {point.y:f}
", - "headerFormat" : "{series.name}
", - "followPointer" : 1 + "headerFormat" : "{series.name}
" }, "drilldown" : { "series" : [ - { - "id" : "Ali Moradi", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ], - "name" : "Ali Moradi" - }, { "id" : "Arne Sommer", "data" : [ @@ -35,64 +124,7 @@ "name" : "Arne Sommer" }, { - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 2 - ] - ], - "id" : "Athanasius", - "name" : "Athanasius" - }, - { - "id" : "BarrOff", - "data" : [ - [ - "Perl", - 1 - ], - [ - "Raku", - 1 - ] - ], - "name" : "BarrOff" - }, - { - "name" : "Bob Lied", - "data" : [ - [ - "Perl", - 2 - ] - ], - "id" : "Bob Lied" - }, - { - "id" : "Bruce Gray", - "data" : [ - [ - "Raku", - 2 - ] - ], - "name" : "Bruce Gray" - }, - { - "data" : [ - [ - "Perl", - 2 - ] - ], - "id" : "Cheok-Yin Fung", - "name" : "Cheok-Yin Fung" - }, - { + "id" : "Dave Jacoby", "data" : [ [ "Perl", @@ -103,7 +135,6 @@ 1 ] ], - "id" : "Dave Jacoby", "name" : "Dave Jacoby" }, { @@ -117,60 +148,17 @@ "id" : "David Ferrone" }, { - "name" : "E. Choroba", + "id" : "E. Choroba", "data" : [ [ "Perl", 2 ] ], - "id" : "E. Choroba" - }, - { - "id" : "Jaldhar H. Vyas", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 2 - ], - [ - "Blog", - 1 - ] - ], - "name" : "Jaldhar H. Vyas" - }, - { - "data" : [ - [ - "Raku", - 2 - ] - ], - "id" : "Jan Krnavek", - "name" : "Jan Krnavek" - }, - { - "name" : "Jorg Sommrey", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ], - "id" : "Jorg Sommrey" + "name" : "E. Choroba" }, { "name" : "Laurent Rosenfeld", - "id" : "Laurent Rosenfeld", "data" : [ [ "Perl", @@ -184,23 +172,11 @@ "Blog", 2 ] - ] - }, - { - "name" : "Lubos Kolouch", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 2 - ] ], - "id" : "Lubos Kolouch" + "id" : "Laurent Rosenfeld" }, { + "name" : "Luca Ferrari", "data" : [ [ "Raku", @@ -211,114 +187,53 @@ 9 ] ], - "id" : "Luca Ferrari", - "name" : "Luca Ferrari" - }, - { - "name" : "Mariano Spadaccini", - "data" : [ - [ - "Perl", - 2 - ] - ], - "id" : "Mariano Spadaccini" + "id" : "Luca Ferrari" }, { "name" : "Mark Anderson", - "id" : "Mark Anderson", "data" : [ [ "Raku", 2 ] - ] - }, - { - "data" : [ - [ - "Perl", - 2 - ] ], - "id" : "Matthew Neleigh", - "name" : "Matthew Neleigh" + "id" : "Mark Anderson" }, { - "name" : "Mustafa Aydin", - "id" : "Mustafa Aydin", - "data" : [ - [ - "Raku", - 2 - ] - ] - }, - { - "name" : "Nelo Tovar", - "id" : "Nelo Tovar", - "data" : [ - [ - "Perl", - 2 - ] - ] - }, - { - "name" : "Niels van Dijke", "data" : [ [ "Perl", 2 ] ], - "id" : "Niels van Dijke" + "id" : "Niels van Dijke", + "name" : "Niels van Dijke" }, { - "id" : "Packy Anderson", "data" : [ [ "Perl", 2 ], - [ - "Raku", - 2 - ], [ "Blog", 1 ] ], - "name" : "Packy Anderson" - }, - { "id" : "Peter Campbell Smith", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ], "name" : "Peter Campbell Smith" }, { - "name" : "Peter Meszaros", "id" : "Peter Meszaros", "data" : [ [ "Perl", 2 ] - ] + ], + "name" : "Peter Meszaros" }, { - "name" : "Robbie Hatley", - "id" : "Robbie Hatley", "data" : [ [ "Perl", @@ -328,20 +243,13 @@ "Blog", 1 ] - ] - }, - { - "name" : "Robert Ransbottom", - "id" : "Robert Ransbottom", - "data" : [ - [ - "Raku", - 2 - ] - ] + ], + "id" : "Robbie Hatley", + "name" : "Robbie Hatley" }, { "name" : "Roger Bell_West", + "id" : "Roger Bell_West", "data" : [ [ "Perl", @@ -350,40 +258,12 @@ [ "Raku", 2 - ], - [ - "Blog", - 1 ] - ], - "id" : "Roger Bell_West" - }, - { - "name" : "Simon Green", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ], - "id" : "Simon Green" - }, - { - "id" : "Simon Proctor", - "data" : [ - [ - "Raku", - 1 - ] - ], - "name" : "Simon Proctor" + ] }, { "name" : "Stephen G. Lynn", + "id" : "Stephen G. Lynn", "data" : [ [ "Perl", @@ -393,11 +273,11 @@ "Blog", 1 ] - ], - "id" : "Stephen G. Lynn" + ] }, { "name" : "Thomas Kohler", + "id" : "Thomas Kohler", "data" : [ [ "Perl", @@ -407,10 +287,10 @@ "Blog", 2 ] - ], - "id" : "Thomas Kohler" + ] }, { + "name" : "Ulrich Rieke", "id" : "Ulrich Rieke", "data" : [ [ @@ -419,13 +299,11 @@ ], [ "Raku", - 1 + 2 ] - ], - "name" : "Ulrich Rieke" + ] }, { - "id" : "W. Luis Mochan", "data" : [ [ "Perl", @@ -436,230 +314,23 @@ 1 ] ], + "id" : "W. Luis Mochan", "name" : "W. Luis Mochan" - }, - { - "data" : [ - [ - "Perl", - 2 - ] - ], - "id" : "Wanderdoc", - "name" : "Wanderdoc" } ] }, + "title" : { + "text" : "The Weekly Challenge - 254" + }, "legend" : { "enabled" : 0 }, - "chart" : { - "type" : "column" - }, - "xAxis" : { - "type" : "category" - }, - "title" : { - "text" : "The Weekly Challenge - 253" - }, - "series" : [ - { - "name" : "The Weekly Challenge - 253", - "data" : [ - { - "name" : "Ali Moradi", - "drilldown" : "Ali Moradi", - "y" : 3 - }, - { - "name" : "Arne Sommer", - "drilldown" : "Arne Sommer", - "y" : 3 - }, - { - "name" : "Athanasius", - "drilldown" : "Athanasius", - "y" : 4 - }, - { - "name" : "BarrOff", - "drilldown" : "BarrOff", - "y" : 2 - }, - { - "drilldown" : "Bob Lied", - "y" : 2, - "name" : "Bob Lied" - }, - { - "drilldown" : "Bruce Gray", - "y" : 2, - "name" : "Bruce Gray" - }, - { - "drilldown" : "Cheok-Yin Fung", - "y" : 2, - "name" : "Cheok-Yin Fung" - }, - { - "drilldown" : "Dave Jacoby", - "y" : 3, - "name" : "Dave Jacoby" - }, - { - "y" : 2, - "drilldown" : "David Ferrone", - "name" : "David Ferrone" - }, - { - "y" : 2, - "drilldown" : "E. Choroba", - "name" : "E. Choroba" - }, - { - "drilldown" : "Jaldhar H. Vyas", - "y" : 5, - "name" : "Jaldhar H. Vyas" - }, - { - "y" : 2, - "drilldown" : "Jan Krnavek", - "name" : "Jan Krnavek" - }, - { - "y" : 3, - "drilldown" : "Jorg Sommrey", - "name" : "Jorg Sommrey" - }, - { - "y" : 6, - "drilldown" : "Laurent Rosenfeld", - "name" : "Laurent Rosenfeld" - }, - { - "y" : 4, - "drilldown" : "Lubos Kolouch", - "name" : "Lubos Kolouch" - }, - { - "y" : 11, - "drilldown" : "Luca Ferrari", - "name" : "Luca Ferrari" - }, - { - "drilldown" : "Mariano Spadaccini", - "y" : 2, - "name" : "Mariano Spadaccini" - }, - { - "name" : "Mark Anderson", - "y" : 2, - "drilldown" : "Mark Anderson" - }, - { - "drilldown" : "Matthew Neleigh", - "y" : 2, - "name" : "Matthew Neleigh" - }, - { - "name" : "Mustafa Aydin", - "drilldown" : "Mustafa Aydin", - "y" : 2 - }, - { - "name" : "Nelo Tovar", - "y" : 2, - "drilldown" : "Nelo Tovar" - }, - { - "y" : 2, - "drilldown" : "Niels van Dijke", - "name" : "Niels van Dijke" - }, - { - "y" : 5, - "drilldown" : "Packy Anderson", - "name" : "Packy Anderson" - }, - { - "drilldown" : "Peter Campbell Smith", - "y" : 3, - "name" : "Peter Campbell Smith" - }, - { - "name" : "Peter Meszaros", - "y" : 2, - "drilldown" : "Peter Meszaros" - }, - { - "drilldown" : "Robbie Hatley", - "y" : 3, - "name" : "Robbie Hatley" - }, - { - "y" : 2, - "drilldown" : "Robert Ransbottom", - "name" : "Robert Ransbottom" - }, - { - "drilldown" : "Roger Bell_West", - "y" : 5, - "name" : "Roger Bell_West" - }, - { - "drilldown" : "Simon Green", - "y" : 3, - "name" : "Simon Green" - }, - { - "name" : "Simon Proctor", - "drilldown" : "Simon Proctor", - "y" : 1 - }, - { - "drilldown" : "Stephen G. Lynn", - "y" : 3, - "name" : "Stephen G. Lynn" - }, - { - "name" : "Thomas Kohler", - "y" : 4, - "drilldown" : "Thomas Kohler" - }, - { - "y" : 3, - "drilldown" : "Ulrich Rieke", - "name" : "Ulrich Rieke" - }, - { - "y" : 3, - "drilldown" : "W. Luis Mochan", - "name" : "W. Luis Mochan" - }, - { - "drilldown" : "Wanderdoc", - "y" : 2, - "name" : "Wanderdoc" - } - ], - "colorByPoint" : 1 - } - ], - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - } - } + "subtitle" : { + "text" : "[Champions: 16] Last updated at 2024-01-31 13:36:32 GMT" }, "yAxis" : { "title" : { "text" : "Total Solutions" } - }, - "subtitle" : { - "text" : "[Champions: 35] Last updated at 2024-01-29 05:51:00 GMT" } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index e320e961ac..80895b185d 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,63 +1,63 @@ { - "title" : { - "text" : "The Weekly Challenge Contributions [2019 - 2024]" - }, "series" : [ { - "name" : "Contributions", "dataLabels" : { - "align" : "right", - "enabled" : "true", - "format" : "{point.y:.0f}", "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" }, + "align" : "right", + "format" : "{point.y:.0f}", "y" : 10, - "rotation" : -90, - "color" : "#FFFFFF" + "color" : "#FFFFFF", + "enabled" : "true", + "rotation" : -90 }, "data" : [ [ "Blog", - 4453 + 4472 ], [ "Perl", - 13073 + 13099 ], [ "Raku", - 7543 + 7555 ] - ] + ], + "name" : "Contributions" } ], - "subtitle" : { - "text" : "Last updated at 2024-01-29 05:50:59 GMT" - }, - "yAxis" : { - "min" : 0, - "title" : { - "text" : null + "xAxis" : { + "type" : "category", + "labels" : { + "style" : { + "fontFamily" : "Verdana, sans-serif", + "fontSize" : "13px" + } } }, - "tooltip" : { - "pointFormat" : "{point.y:.0f}" + "chart" : { + "type" : "column" + }, + "title" : { + "text" : "The Weekly Challenge Contributions [2019 - 2024]" }, "legend" : { "enabled" : "false" }, - "chart" : { - "type" : "column" + "tooltip" : { + "pointFormat" : "{point.y:.0f}" }, - "xAxis" : { - "labels" : { - "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" - } + "yAxis" : { + "title" : { + "text" : null }, - "type" : "category" + "min" : 0 + }, + "subtitle" : { + "text" : "Last updated at 2024-01-31 13:36:32 GMT" } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index fe170ad461..2b2c665bb2 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,4615 +1,57 @@ { + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "subtitle" : { + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2024-01-31 13:36:32 GMT" + }, "chart" : { "type" : "column" }, "xAxis" : { "type" : "category" }, - "drilldown" : { - "series" : [ - { - "data" : [ - [ - "Perl", - 105 - ], - [ - "Raku", - 47 - ], - [ - "Blog", - 12 - ] - ], - "id" : "001", - "name" : "001" - }, - { - "id" : "002", - "data" : [ - [ - "Perl", - 83 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 10 - ] - ], - "name" : "002" - }, - { - "data" : [ - [ - "Perl", - 48 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 9 - ] - ], - "id" : "003", - "name" : "003" - }, - { - "name" : "004", - "data" : [ - [ - "Perl", - 60 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 10 - ] - ], - "id" : "004" - }, - { - "data" : [ - [ - "Perl", - 42 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 12 - ] - ], - "id" : "005", - "name" : "005" - }, - { - "data" : [ - [ - "Perl", - 36 - ], - [ - "Raku", - 18 - ], - [ - "Blog", - 7 - ] - ], - "id" : "006", - "name" : "006" - }, - { - "id" : "007", - "data" : [ - [ - "Perl", - 36 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 10 - ] - ], - "name" : "007" - }, - { - "data" : [ - [ - "Perl", - 48 -