Created
March 15, 2012 15:13
-
-
Save Siddhant/2044727 to your computer and use it in GitHub Desktop.
balanced brackets
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
siddhant@siddhant-laptop:~/perl6 code$ perl6 balanced\ brackets | |
Number of brackets4 | |
[][][][] is well-balanced | |
siddhant@siddhant-laptop:~/perl6 code$ perl6 balanced\ brackets | |
Number of brackets3 | |
[][][] is well-balanced | |
siddhant@siddhant-laptop:~/perl6 code$ perl6 balanced\ brackets | |
Number of brackets7 | |
[][][][][][][] is well-balanced | |
siddhant@siddhant-laptop:~/perl6 code$ perl6 balanced\ brackets | |
Number of brackets8 | |
[][][][][][][][] is well-balanced | |
siddhant@siddhant-laptop:~/perl6 code$ perl6 balanced\ brackets | |
Number of brackets8 | |
[][][][][][][][] is well-balanced | |
siddhant@siddhant-laptop:~/perl6 code$ perl6 balanced\ brackets | |
Number of brackets6 | |
[][][][][][] is well-balanced | |
siddhant@siddhant-laptop:~/perl6 code$ perl6 balanced\ brackets | |
Number of brackets5 | |
[][][][][] is well-balanced | |
siddhant@siddhant-laptop:~/perl6 code$ perl6 balanced\ brackets | |
Number of brackets12 | |
[][][][][][][][][][][][] is well-balanced | |
siddhant@siddhant-laptop:~/perl6 code$ perl6 balanced\ brackets | |
Number of brackets15 | |
[][][][][][][][][][][][][][][] is well-balanced |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment