# Solutions by Abigail ## [Challenge #1](https://perlweeklychallenge.org/blog/perl-weekly-challenge-002/#challenge-1) Write a script or one-liner to remove leading zeros from positive numbers. ### Notes We will be reading numbers from STDIN, and writing the results to STDOUT, one number per line. We cannot have a number with just 0's, as that would not be a positive number. ### Solutions * [AWK](awk/ch-1.awk) * [Bash](bash/ch-1.sh) * [bc](bc/ch-1.bc) * [Befunge-93](befunge-93/ch-1.bf93) * [C](c/ch-1.c) * [Go](go/ch-1.go) * [Java](java/ch-1.java) * [Lua](lua/ch-1.lua) * [Node.js](node/ch-1.js) * [Pascal](pascal/ch-1.p) * [Perl](perl/ch-1.pl) * [Python](python/ch-1.py) * [R](r/ch-1.r) * [Ruby](ruby/ch-1.rb) * [Scheme](scheme/ch-1.scm) * [Tcl](tcl/ch-1.tcl) ## [Challenge #2](https://perlweeklychallenge.org/blog/perl-weekly-challenge-002/#challenge-2) Write a script that can convert integers to and from a base35 representation, using the characters 0-9 and A-Y. Dave Jacoby came up with nice description about [base35](https://gist.github.com/jacoby/764bb4e8a5d3a819b5fbfa497fcb3454), in case you needed some background. ### Note We will be reading numbers from STDIN, and writing the results to STDOUT, one number per line. Programs will use an option, -t (to base 35), or -f (from base 35) to indicate which direction to go. ### Solutions * [AWK](awk/ch-2.awk) * [Bash](bash/ch-2.sh) * [C](c/ch-2.c) * [Go](go/ch-1.go) * [Java](java/ch-1.java) * [Lua](lua/ch-2.lua) * [Node](node/ch-2.js) * [Pascal](pascal/ch-1.p) * [Perl](perl/ch-2.pl) * [Python](python/ch-2.py) * [R](r/ch-2.r) * [Ruby](ruby/ch-2.by) * [Scheme](scheme/ch-2.scm) * [Tcl](tcl/ch-2.tcl)