This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
##################################################### | |
# Binary Tree Traversal Breadth-first (level order) | |
# Author: Omid Houshyar | |
# Date: 11/20/2013 | |
##################################################### | |
use strict; | |
use warnings; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use feature qw( say ); | |
use AnyEvent; | |
use AnyEvent::Strict; | |
use Twiggy::Server; | |
my $psgi_app = sub { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use feature qw( say ); | |
# my @arr = ( 4, 2, 3, 6, 5, 7, 1,); | |
# my @arr = (1,3,5,2,4,6); | |
my $verbose = 1 if ($ARGV[0] && $ARGV[0] eq '-v'); |