Initial commit with BinaryGap solution
This commit is contained in:
commit
8f07d88496
6 changed files with 150 additions and 0 deletions
19
1-binary_gap.pl
Executable file
19
1-binary_gap.pl
Executable 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue