This file contains hidden or 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
<?php | |
use \Go\Core\AspectKernel; | |
use \Go\Core\AspectContainer; | |
/** | |
* Application Aspect Kernel | |
*/ | |
class ApplicationAspectKernel extends AspectKernel | |
{ |
This file contains hidden or 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
(defparameter *tree2* '(40 (30 (25 () ()) (35 () ())) (60 (50 () ()) ()))) | |
(defparameter *tree* '(3 (2 (1 () ()) ()) (5 () ()))) | |
;validate if given parameter is a binary tree or not | |
(defun is-tree(tree) | |
(cond | |
((null tree) NIL) | |
((< (list-length tree) 3) NIL) | |
(t) | |
) |
NewerOlder