Initial commit with BinaryGap solution

This commit is contained in:
Tracey Clark 2023-09-20 21:50:08 -05:00
commit 8f07d88496
6 changed files with 150 additions and 0 deletions

19
1-binary_gap.pl Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/env perl
use strict;
use warnings;
use FindBin;
use lib "$FindBin::RealBin/lib";
use lib 'lib';
use BinaryGap;
use Data::Dumper;
print "Input: " . Dumper($ARGV[0]);
my $number = $ARGV[0];
my $answer = BinaryGap::solution($number);
print "Got answer $answer\n";
exit;